- Disable all logging :
Syntax: logManager.disableAllLogging() Parameters: None Description: Disables the methods - console.debug, console.log, console.error, console.info, console.warn, console.dir, console.trace, console.count. Once disabled, these functions will do nothing, when called.
- Enable all logging :
Syntax: logManager.enableAllLogging() Parameters: None Description: Enables the methods - console.debug, console.log, console.error, console.info, console.warn, console.dir, console.trace, console.count. These functions will works as they do.
- Disable logging selectively:
Syntax: logManager.disableLoggingFor([array]) Parameters: An array of values consisting of ("debug", "log", "error", "info", "warn", "dir", "trace", "count") Description: Disables the methods mentioned in the array. All other methods will be enabled, i.e. they will work as they do.
- Enable logging selectively:
Syntax: logManager.enableLoggingFor([array]) Parameters: An array of values consisting of ("debug", "log", "error", "info", "warn", "dir", "trace", "count") Description: Enables only the methods mentioned in the array. All other methods will be disabled, i.e. they will do nothing.
- Disable alerts:
Syntax: logManager.disableAlerts() Parameters: None Description: Disables the window.alert or simply alert method. The alert method will then do nothing.
- Enable alerts:
Syntax: logManager.enableAlerts() Parameters: None Description: Enables the window.alert or simply alert method. The alert method will then work as expected.
-
Notifications
You must be signed in to change notification settings - Fork 0
A javascript log manager, to enable/disable javascript logging methods, such as console.debug(), console.log(), console.error(), console.info(), console.warn(), console.dir(), console.trace(), console.count() and alert()
rinkal-rohara/log-manager
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A javascript log manager, to enable/disable javascript logging methods, such as console.debug(), console.log(), console.error(), console.info(), console.warn(), console.dir(), console.trace(), console.count() and alert()
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published