pinojs / pino-pretty

🌲Basic prettifier for Pino log lines
MIT License
1.27k stars 150 forks source link

Cannot set minimumLevel below info #313

Closed turkerdev closed 2 years ago

turkerdev commented 2 years ago

Cannot set minimumLevel below info, if i set minimumLevel error, it shows error and higher levels, but setting minimumLevel to debug doesnt show you debug messages.

{
  "levelKey": "level",
  "ignore": "pid,hostname",
  "translateTime": "SYS:HH:MM:ss",
  "minimumLevel": "debug"
}
[16:52:01] FATAL: this is fatal
[16:52:01] ERROR: this is error
[16:52:01] WARN: this is warn
[16:52:01] INFO: this is info
mcollina commented 2 years ago

This should work as expected, can you include a full example?

turkerdev commented 2 years ago

Here is the repo

mcollina commented 2 years ago

You need to configure pino level to debug or trace.