lumberjack-logger
v0.0.2
Published
a mondern client side logging framework
Downloads
3
Maintainers
Readme
LumberJack-Logger
A modern client side logging framework
How to Use LumberJack
For browserify projects - coming soon
npm install --save lumberjack-logger
For the browser
<script type="text/javascript" src="/js/lumberjack.min.js">
Once you have LumberJack installed you can use it like this
var loggger = lumberjack.logger( "Paul Bunyan" );
logger.log( "Where is Babe" );
logger.info( "pulling the tree" );
Available Options
{
paddingLength : 15,
hue : 0,
enableBy : "localStorage", // options are "query" , "localStorage" , "jsVar"
debugKey : "debug",
logToServer : false,
serverEndPoint : "http://localhost:3000/client/log",
showStackTraceInJsConsole : true,
buffer : 20,
logWhenBufferFull : true,
logLevel : "error", // options are "log" , "info" , "debug", "warn", "error"
colorEnabled : true
}
Inspiration
License
MIT