@bloq/service-logger
v2.0.0
Published
Logging helper based on Winston 2.x
Downloads
189
Readme
service-logger
Logging helper based on Winston 3.x.
Quick start
const createLogger = require('@bloq/service-logger')
const logger = createLogger({
Console: {
level: 'debug'
},
Papertrail: {
level: 'info',
host: 'logs42.papertrailapp.com',
port: '11666',
program: 'awesome-service'
}
})
logger.info('Logging to all transports!')
Supported transports
Winston
core transportsPapertrail
These transports will be used only when installed along this module.