winston.handleExceptions submits 'false' to papertrail.
See original GitHub issueHi, I’m trying to use winston-papertrail to log nodejs/express unhandled exceptions but they show up as “false” in papertrail. Code snippet:
var winston = require('winston');
winston.handleExceptions(
new winston.transports.Papertrail({
host: 'xxx',
port: xxx,
hostname: 'xxx',
inlineMeta: true
})
);
Then I throw an exception without catching it, like this:
throw Error('boo');
After spending some time looking into it I could find out that it looks like “level” is being passed as undefined into:
Papertrail.prototype.sendMessage = function (hostname, program, level, message) {
Issue Analytics
- State:
- Created 8 years ago
- Comments:14 (3 by maintainers)
Top Results From Across the Web
Node process still exits even though winston logger ...
Here is my winston logger config. I have exitOnError set to false but the node process exits on error anyways. Are there any...
Read more >winstonjs/winston: A logger for just about everything. - GitHub
When working with custom logger instances, you can pass in separate transports to the exceptionHandlers property or set handleExceptions on any transport.
Read more >winston-papertrail-fix - npm Package Health Analysis - Snyk
Learn more about winston-papertrail-fix: package health score, popularity, ... Tell this Transport to handle exceptions, defaults to false.
Read more >winston - npm
A multi-transport async logging library for Node.js. Latest version: 3.8.2, last published: 4 months ago. Start using winston in your ...
Read more >Troubleshooting reachability - Papertrail
Message arrived but was attributed to incorrect system ... Less common setup methods below the search area, click My syslog daemon only sends...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is live on NPM in version
1.0.3
.If you’re reading this message, we’d love if you can pull the current master of winston-papertrail and run it. We’ll wait at least 2 weeks to see whether any issues come up from wider use of this and one other change. If you encounter problems with master which don’t occur in the current release, please open a new GitHub Issue with the transcript and reference #34.