[Feature Request]: Also allow setting transport level of type (level) => boolean
#2433
Labels
Feature Request
Request for new functionality to support use cases not already covered
Needs Investigation
🔎 Search Terms
transport, level
The vision
When passing transports to
createLogger()
, each transport asks for alevel
of typestring
, to use to log higher levels of that. e.g. setting it towarn
tells it to logwarn
,error
,fatal
.But there is a need to log a specific level or levels, not lower nor higher. I propose adding support for the type
(level) => boolean
, to tell whether or not the transport should be called.Use case
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: