I was expecting the last line to have a level of 31. The same happens if customLogLevel: () => 'request' is defined instead of useLevel, and if an instance that's been reused has the level instead.
Yesterday I was able to fix this locally, but I wanted to open an issue before working on a PR in case I'm missing something and this is a conscious design decision. Thanks for the library!
Using the following example server:
If I run
curl localhost:3000
these are the output logs I get:I was expecting the last line to have a level of 31. The same happens if
customLogLevel: () => 'request'
is defined instead ofuseLevel
, and if an instance that's been reused has the level instead.Yesterday I was able to fix this locally, but I wanted to open an issue before working on a PR in case I'm missing something and this is a conscious design decision. Thanks for the library!