clogster
v0.0.7
Published
Logger for nodejs
Downloads
3
Readme
Clogster
Small logger.
Example
const Logger = require('clogster');
const config = {
mode: 'prod',
enable: true
}
const logger = new Logger(config);
logger.info('INFORMATION');
Logger.log(message:str, [mode:str])
Printing log style message.
Logger.error(message:str, [mode:str])
Printing error style message.
Logger.warn(message:str, [mode:str])
Printing warning style message.
Logger.info(message:str, [mode:str])
Printing info style message.
Logger.red(message:str, [mode:str])
Printing red color message.
Logger.yellow(message:str, [mode:str])
Printing yellow color message.
Logger.cyan(message:str, [mode:str])
Printing cyan color message.
Logger.enable(message:str, [mode:str])
Enable logging.
Logger.disable(message:str, [mode:str])
Disable logging.
Logger.setMode(message:str, [mode:str])
Set mode logging. prod or dev.