@bloq/service-logger

2.0.0 • Public • Published

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

These transports will be used only when installed along this module.

Package Sidebar

Install

npm i @bloq/service-logger

Weekly Downloads

82

Version

2.0.0

License

MIT

Unpacked Size

4.79 kB

Total Files

4

Last publish

Collaborators

  • gndelia
  • gabmontes