Skip to content

Customizable logger with different appenders ($http, console, alert). Sending log by timeout. Log levels.

Notifications You must be signed in to change notification settings

AndreiShostik/angular-log-extender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-log-extender

Build Status Coverage Status

  • log to server
  • error levels
  • providers

Configuration:

angular
    .module('YourModule')
    .config(function (logExtenderProvider, ApiServerHostProvider) {
        logExtenderProvider.setLevel(logExtenderProvider.levels.warn);
        logExtenderProvider.setAppender({
            appenderType: logExtenderProvider.appenderTypes.http,
            urlBatch: ApiServerHostProvider.$get() + 'log/batch',
            storage: 'localStorageService'
        });
    })
    .run(function (logExtender) {
        if (logExtender.storageAvailability()) {
            logExtender.appender.sendStorageData();
        }
    });

About

Customizable logger with different appenders ($http, console, alert). Sending log by timeout. Log levels.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published