Replies: 2 comments
-
The idea behind this line is that you can disable it by setting the logging level higher than "info", to "warn" in particular. Does anything of this work for you, @t1nky ? |
Beta Was this translation helpful? Give feedback.
-
I'm going to decrease those message severity to "debug" in v19, and I will add a possibility to set "info" as a minimal one in the built-in logger configuration, @t1nky |
Beta Was this translation helpful? Give feedback.
-
Currently, when endpoint is hit, there is a log of "method: path"
express-zod-api/src/routing.ts
Line 32 in 8649cf2
I use pino with pino-http and I get more rich log message, but I have no ability to disable the default message, as a result I get 2 lines in the log for the same operation.
Do you think this should not be in the core of the package? Maybe it should be in some default middleware that we can overwrite. Currently that default log takes about 1/5 of total number of lines for us (approx 1mil additional lines).
It is not a big deal, but more work doing filtering and adds up to some amount of useless logs. If there is any particular use of that line that I'm missing, please let me know! Thank you.
Beta Was this translation helpful? Give feedback.
All reactions