Useful for errors that have more information than is covered by the message text and stack trace.
Basically, all error logs will have an error property containing the raw error object (without the stack property, since that's already on the top level of the log). An errorTransform can be passed to the error logger options to customize the object put on to the error property (e.g., for removing properties that should not be exposed in the logs).
Fixes #95.
Useful for errors that have more information than is covered by the message text and stack trace.
Basically, all error logs will have an
error
property containing the raw error object (without thestack
property, since that's already on the top level of the log). AnerrorTransform
can be passed to the error logger options to customize the object put on to theerror
property (e.g., for removing properties that should not be exposed in the logs).