outlog

1.2.10 • Public • Published

OutLog - Javascript logger for browser

  • NOTE: Package still in alpha testing

Install

npm install outlog --save-dev

Default usage example

var Outlog = require("outlog");

var logger = Outlog.init("Module1", {debug:true}); // print logs to console

logger.info("Initializing");
logger.info("refresh()");

logger.error("Something wrong going here...");

Result

Show trace by cookie marker

var logger1 = Outlog.init("Module1");
    logger1.info("Info message", {users: 5, project: 7});
    logger1.warning("Error message");
    logger1.error("Error message", {reason: "Validation error"});

    var logger2 = Outlog.init("Module2");
    logger2.info("Second module info will not appeared");
   

Open browser console and call method Outlog.logger.Module2

Outlog.print.Module1({debug: true})

And all logs from this module will appear only for you and only in your browser

Result

Dependencies (0)

    Dev Dependencies (12)

    Package Sidebar

    Install

    npm i outlog

    Weekly Downloads

    0

    Version

    1.2.10

    License

    ISC

    Unpacked Size

    175 kB

    Total Files

    24

    Last publish

    Collaborators

    • axclever