Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.18 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.18 KB

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