Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 888 Bytes

README.md

File metadata and controls

33 lines (20 loc) · 888 Bytes

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