Skip to content

A simple JS Logger with support to override and disable default javascript logging.

License

Notifications You must be signed in to change notification settings

sunnykgupta/jsLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

jsLogger

A simple JS Logger with support to override and disable default javascript logging.

On production servers, we generally try to avoid console.log statements. In real world scenarios code sometimes reaches the production servers with such lines of code. Browsers which do not support console implementations would then throw a silent error for the JS and stop further execution.

This plugin allows you to override such scenarios.

Peace

Usage

To Disabled show console message

console.debug(false);

if you want enable log error to array so you can use later

console.saveLog(true);

// save some message
console.log('test');

// then later get list or console message
var logArray = console.logArray();

by default debug & save log of console message is disabled

About

A simple JS Logger with support to override and disable default javascript logging.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published