0.0.2 • Published 8 years ago

logjsx v0.0.2

Weekly downloads
9
License
-
Repository
github
Last release
8 years ago

Logjs is minimal logging API.

Logjs has 6 diffrent log levels:

1.DEBUG         : Will log everything
2.INFO          : will log INFO, ERROR, WARNING and FATAL  { Default Log Level }
3.ERROR         : will log ERROR, WARNING and FATAL
4.WARNING       : will log WARNING as well as FATAL
5.FATAL         : Will log only FATAL logging
6.NO_LOGGING    : Won't log anything

How to Use :

    
    var logjs = require('logjsx');
    var logger = new logjs();
    
    logger.init({
        level : "FATAL"
    });
    
    logger.debug("DEBUG");
    logger.info("INFO");
    logger.warn("WARN");
    logger.error("ERROR");
    logger.fatal("FATAL");