We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When extending the Error, and passing it to Bunyan, the new properties are not logged,
class FooError extends Error { constructor(message, newPropertyValue) { super(); this.message = message; this.newProperty = newPropertyValue; }
var logger = bunyan.createLogger({name: "myapp"}); var fooError = new FooError("someMessage", "booValue"); logger.error(fooError);
The logs contain "message" as expected but does not include non-standard error properties like the newPropertyValue.
{"name":"myapp","hostname":"localhost.localdomain","pid":16767,"level":50,"err":{"message":"someMessage","name":"Error","stack":"Error: \n someMessage at ... "},"msg":"someMessage","time":"2017-06-22T13:47:24.774Z","v":0}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When extending the Error, and passing it to Bunyan, the new properties are not logged,
Extending Error
When logging
The logs contain "message" as expected but does not include non-standard error properties like the newPropertyValue.
The text was updated successfully, but these errors were encountered: