effect
effect copied to clipboard
Serialize error stack trace and `cause` stack with json logger
What is the problem this feature would solve?
No stack traces exist within the output when logging a Cause.prettyError containing a Data.TaggedError (with or without a cause field).
What is the feature you are proposing to solve the problem?
The expected behavior is the stack trace and the nested cause stack should also be logged (ideally recursively).
What alternatives have you considered?
Pino has some examples of serializers for logging errors.
https://github.com/pinojs/pino-std-serializers