You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m facing an issue with my current Pino logger setup where logs for trace and debug levels are not being printed. Here’s a quick summary of the setup and problem:
Initial Setup:
Create a logger module named @pino-logger.
1. Is there something wrong with my current logger configuration or formatters.level usage?
2. How can I modify the setup to ensure that trace and debug logs are printed while maintaining formatted log levels (e.g., 'TRACE', 'DEBUG')?
The text was updated successfully, but these errors were encountered:
jenishk29
changed the title
Logs for trace and debug levels are not printed when using a custom formatters.level in Pino
Logs for trace and debug levels are not printed when using a custom formatters.level in Pino 9.5.0
Nov 19, 2024
I’m facing an issue with my current Pino logger setup where logs for trace and debug levels are not being printed. Here’s a quick summary of the setup and problem:
Initial Setup:
Create a logger module named @pino-logger.
Usage in AWS Lambda Function:
Import and use the logger in a Lambda function.
This setup correctly prints all log levels, including trace. Sample log:
Updated Setup with formatters.level:
Modify the logger to replace numerical levels (e.g., 10) with their string equivalents (e.g., 'TRACE').
After this update, logs for trace and debug levels are no longer printed. However, other levels, such as info and error, work as expected.
Example of working log:
1. Is there something wrong with my current logger configuration or formatters.level usage?
2. How can I modify the setup to ensure that trace and debug logs are printed while maintaining formatted log levels (e.g., 'TRACE', 'DEBUG')?
The text was updated successfully, but these errors were encountered: