Skip to content

pantojs/panto-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

panto-logger

NPM version Downloads Build Status Dependency status Dev Dependency status

Logger for panto.

const logger = require('panto-logger');

logger.setLevel('log');

logger.setOutStream(fs.createWriteStream('/log.log', {flags: 'a'});)

data('record data message');
help('record help message');
debug('record debug message');
info('record info message');
warn('record warn message');
error('record error message').then(()=>{
    // record complete
});