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
When building a middleware (and to a lesser degree when building a listener), its very useful to be able to output debugging information. The app has already made its intentions about which logs are appropriate clear by setting a LogLevel, so it would be a shame for middleware to ignore that intentional choice and have to build its own implementation for filtering messages (like using an environment variable or taking an explicit choice during instantiation).
Instead, if we made logger an argument that all middleware and listeners could access, then it would be simple for any middleware to opt into using the logger.
Requirements (place an x in each of the [ ])
I've read and understood the Contributing guidelines and have done my best effort to follow them.
Description
When building a middleware (and to a lesser degree when building a listener), its very useful to be able to output debugging information. The app has already made its intentions about which logs are appropriate clear by setting a
LogLevel
, so it would be a shame for middleware to ignore that intentional choice and have to build its own implementation for filtering messages (like using an environment variable or taking an explicit choice during instantiation).Instead, if we made
logger
an argument that all middleware and listeners could access, then it would be simple for any middleware to opt into using thelogger
.Requirements (place an
x
in each of the[ ]
)The text was updated successfully, but these errors were encountered: