lumberjack-logger

    0.0.2 • Public • Published

    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

    andLog by @henrikjoreteg

    Bows by @philip_roberts

    License

    MIT

    Install

    npm i lumberjack-logger

    DownloadsWeekly Downloads

    5

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • techjet