Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Papertrail does not support winston 3.x #98

Open
vladaman opened this issue Aug 31, 2020 · 1 comment
Open

Papertrail does not support winston 3.x #98

vladaman opened this issue Aug 31, 2020 · 1 comment

Comments

@vladaman
Copy link

vladaman commented Aug 31, 2020

Need major update to new version.

Papertrail is a legacy winston transport. Consider upgrading: 
Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md
@gabrielfast
Copy link

Need major update to new version.

Papertrail is a legacy winston transport. Consider upgrading: 
Upgrade docs: https://github.com/winstonjs/winston/blob/master/UPGRADE-3.0.md

https://www.papertrail.com/help/configuring-centralized-logging-from-nodejs-apps/

const winston = require('winston');

const papertrail = new winston.transports.Http({
  host: 'logs.collector.solarwinds.com',
  path: '/v1/log',
  auth: { username: new String(''), password: 'TOKEN' },
  ssl: true,
});

const logger = winston.createLogger({
  transports: [papertrail],
});

logger.info('hello papertrail');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants