Skip to content

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()

Notifications You must be signed in to change notification settings

rinkal-rohara/log-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

How to USE logManager.js?

Import logManager.js in your application.

Available methods

  1. 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.
    
  2. 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.
    
  3. 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.
    
  4. 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.
    
  5. Disable alerts:
    Syntax: logManager.disableAlerts()
    
    Parameters: None
    
    Description: Disables the window.alert or simply alert method. The alert method will then do nothing.
    
  6. Enable alerts:
    Syntax: logManager.enableAlerts()
    
    Parameters: None
    
    Description: Enables the window.alert or simply alert method. The alert method will then work as expected.
    

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

No packages published