Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

winston-ezylogs

1.0.0 • Public • Published

Winston ezyLogs Transport

See ezylogs.com for more info.

const winston = require('winston');
 
const {
  createLogger,
} = winston;
const EzylogsWinstonTransport = require('winston-ezylogs');
 
const ezylogsWinstonTransport = new EzylogsWinstonTransport({
    system: 'logger',
    apiKey: 'ezylogs-api-key',
});
const logger = createLogger({
    transports: [ezylogsWinstonTransport]
});
 
const logMessage = 'Just a test message';
const errorMessage = 'Big problem';
const error = new Error(errorMessage);
logger.log('error', logMessage, error);
logger.log('warn', logMessage);

Install

npm i winston-ezylogs

DownloadsWeekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.8 kB

Total Files

5

Last publish

Collaborators

  • avatar