Skip to content

laukik/logjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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");

About

minimal logging...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published