Enhance logger to handle Error objects separately in debug mode

- Modified the logger to check if the data is an instance of Error.
- If it is an Error, the logger now formats the output to include the message and stack trace in debug mode, or just the message otherwise.
- Retained the existing behavior for other object types in debug mode.
This commit is contained in:
Alex Newman
2025-12-27 21:55:20 -05:00
parent 64328d4120
commit 949b845992
9 changed files with 85 additions and 64 deletions
File diff suppressed because one or more lines are too long