20 lines
365 B
JavaScript
20 lines
365 B
JavaScript
import logger from '../src/logger'
|
|
let log = {}
|
|
|
|
class LOGTEST {
|
|
constructor(opts) {
|
|
log = logger({
|
|
name: 'test',
|
|
id: opts.id,
|
|
file: 'example/example.js',
|
|
class: 'LOGTEST'
|
|
})
|
|
}
|
|
|
|
}
|
|
|
|
let test = new LOGTEST({id:'process-test1'})
|
|
|
|
log.info({test:'filter', msg:'this is a logged message'})
|
|
log.fatal('this is a fatal logged message')
|