Skip to content

proxy-m/brolog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Brolog - simple logger for JavaScript (Nodejs or Browser)

HOW TO USE IT

Start Logger to std console

const Logger = require('./brolog.js');
logger = new Logger(__filename);

Logger.addConsoleLogger(__filename);

Start Logger to file

const Logger = require('./brolog.js');
logger = new Logger(__filename);

Logger.addFileLogger(__filename);

Change log level to DEBUG

Logger.setDebug();

Output to logger

logger.debug('Hello logging world, only appropriate log levels');