Skip to content

Fancy logger for javascript applications in browser.

License

Notifications You must be signed in to change notification settings

axclever/outlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fancy logger for javascript applications in browser.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published