Select Git revision
index.test.js
log-to-file.js 333 B
const Log = require('../index.js')
let log = new Log({
name: 'Sample-File',
file: 'file.log',
path: '/temp'
})
log.info('This is an Information')
log.notice('This is a Notice')
log.warn('This is a Warning')
log.error('This is an Error')
log.fatal('This is a Fatal Message')
log.debug('This is a Debug Message')