This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

winston-logmatic

0.2.0 • Public • Published

winston-logmatic

Winston transport for Logmatic

npm i -S winston-logmatic

Config

You need to pass down a node-logmatic config objects to winston-logmatic for him to work.

{
  logmatic: {
    token: undefined, // Required : your Logmatic token
    defaultProps: {} // add a default value to your log messages (like appname or hostname)
  }
}

Examples

new Winston.Logger({
  transports: [
    new Winston.transports.Console({
      colorize: true,
      timestamp: true
    }),
    new WinstonLogmatic({
      logmatic: {
        token: 'MY_TOKEN',
        defaultProps: {
          appname: require('./package.json').name,
          hostname: 'prod'
        }
      }
    })
  ],
  timestamp: true,
  level: 'debug'
});

Readme

Keywords

Package Sidebar

Install

npm i winston-logmatic

Weekly Downloads

5

Version

0.2.0

License

MIT

Last publish

Collaborators

  • jcare44