Skip to content

Logging helper based on Winston for all services

License

Notifications You must be signed in to change notification settings

bloq/service-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Logging helper based on Winston for all services

Resources

License

Stars

Watchers

Forks

Packages

No packages published