@wmfs/tymly
Version:
A framework for building and sharing workflows in Node.js
23 lines (16 loc) • 592 B
JavaScript
class TestService {
boot (options) {
const logger1 = options.bootedServices.logger.child('test-service')
logger1.trace('This', 'is', 'a', 'trace', 'message')
logger1.debug('This is a debug message')
const logger2 = options.bootedServices.logger.child({ namespace: 'testing' })
logger2.info('This is an info message')
logger2.warn('This is a warn message')
const logger3 = options.bootedServices.logger.child()
logger3.error('This is an error message')
logger3.fatal('This is a fatal message')
}
}
module.exports = {
serviceClass: TestService
}