johnwatson

0.0.2 • Public • Published

watson

Winston http logger for Sherlock

Example

const watson = require('johnwatson')({ service: 'test', http: { level: 'error', host: 'requestb.in', path: '/10c40eu1', ssl: true } });

const err = new Error('Something went wrong');

watson.log('error', err.message, {
  env: process.env.NODE_ENV || 'dev',
  stack: err.stack,
  request: {}
});

Open https://requestb.in/10c40eu1

For production replace host, path, ssl properties to match a Sherlock instance.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i johnwatson

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • dmtrs