How to access logger outside of the request handler? #2484
Answered
by
RobinTail
james10424
asked this question in
Q&A
-
Is there a way to access it without passing it down to every function that calls it? |
Beta Was this translation helpful? Give feedback.
Answered by
RobinTail
Mar 22, 2025
Replies: 1 comment 1 reply
-
Hello @james10424
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
RobinTail
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello @james10424
express-zod-api
exposesBuiltinLogger
class, so you can make its instance in your code and then use it both withincreateConfig()
and for your own needs.