Make logger behave more in line with console.log #4333
Closed
CodingDive
started this conversation in
Ideas
Replies: 1 comment
-
Hey @CodingDive! 👋🏻 Thank you for your input. The logger syntax we use, although based on Pino, is actually a standard approach in the wider logging community, not exclusive to Pino. We understand the appeal of a syntax similar to console.log. However, our current syntax is chosen for its broader compatibility and familiarity among developers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From the docs
logger.info('Fetching user by id %s', params.id)
However, coming from a lot of frontend development, I often see myself using it like this
logger.info('Fetching user by id', params.id)
This usually leads to the params.id being simply ignored.
Beta Was this translation helpful? Give feedback.
All reactions