- Can be loaded as an AMD module (e.g. requirejs), Common JS module (e.g. nodejs) or standalone
- Show line number on which the logging function was called
- logs objects as json strings
- UI logger extremely useful on mobile devices
- Easy control debug level to control the verbosity of you application and hunt errors
/**
*
* colors (boolean, default true) - specifies whether to use colors for log
* levels or not enabled (boolean, default tue) - specifies whether the logger
* is enabled to output messages or not showTime (boolean, default true) -
* specifies whether a time stamp should be output with log messages or not
* showPath (boolean, default true) - specifies whether a path to the file
* logging the message shoud be output with it level (int, default 3) -
* specifies the highest log level to be output (***indexing is zero-based***)
* poorLogger (boolean, default false) - On browsers without a console object
* uiLogger (boolean, true) - Enable or disable on screen custom logger, usefull on mobile and tablets requires jquery
*
*/
var defaultOptions = {
colors : SERVER ? true : false,
enabled : true,
showTime : true,
showPath : true,
level : 2,
poorLogger : false,
uiLogger : true
};