2.3.3 • Published 6 years ago

winston-transmission v2.3.3

Weekly downloads
31
License
MIT
Repository
github
Last release
6 years ago

Winston Transmission

npm version

A Custom Logger build on top of Winston.

  • Console
  • Sentry
  • Papertrail
  • Rollbar
  • Bugsnag
  • Isomorphic using raven-js raven-node
npm install winston-transmission

Usage and Configs

To use winston as is, install this dependency in your project:

Basic

The basic configurations only reports to the console, the default logging level is info.

import winstonTransmission from 'winston-transmission';

const logger = winstonTransmission({
  logLevel: 'info',
});

logger.info("Hello World!");

Sentry

To use sentry, install this dependency in your project:

npm install raven

Usage

import winstonTransmission from 'winston-transmission';

global.winston = winstonTransmission({
  logLevel: 'info',
  processName: 'My Awesome App',
  external: {
    logLevel: 'warn',
    sentry: 'SENTRY-KEY-XXXX',
  },
})

npm log-levels Assumption

Winston Transmission assumes npm log-levels, and bases its logging upon it.

Each level is given a specific integer priority. The higher the priority the more important the message is considered to be. Ordered from highest priority to the lowest:

error | warn | info | verbose | debug | silly
2.3.3

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.0

6 years ago

2.1.1

6 years ago

2.1.0

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.7.4

6 years ago

1.7.3

6 years ago

1.7.2

6 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.2

6 years ago

1.1.2

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.1

7 years ago