How do I use createSafeLogger with a custom logger? #24
-
|
Can createSafeLogger wrap a logger other than console? |
Beta Was this translation helpful? Give feedback.
Answered by
shnwazdeveloper
May 10, 2026
Replies: 1 comment
-
|
Yes. Pass your logger as |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
clyxudev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. Pass your logger as
createSafeLogger(logger, options). It wraps the configured methods, defaulting todebug,error,info,log, andwarn, then redacts every argument before forwarding it. If a method is missing, it falls back tologger.logwhen available.