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
In my logger config, I have 2 handlers, 'console' and 'file'. Each has its own custom formatter. Then I have a logger named 'debug' that invokes both of these handlers. What I want is to invoke the 'debug' logger with the name of the current main module when it's different than it was when the previous log was output. That way, when I look at the log file, I'll know when the main module was changed (e.g. when Deno.Output was used to execute an external script).
However, I don't want that information to appear in the console. I expected that if my console formatter returned undefined or null, it would prevent output to the console entirely. Unfortunately, it outputs either the string 'undefined' or 'null' instead. I can, in fact, return '' but then a newline still gets output to the console.
This feature request is to find some way to prevent output entirely in a custom formatter.
The text was updated successfully, but these errors were encountered:
In my logger config, I have 2 handlers, 'console' and 'file'. Each has its own custom formatter. Then I have a logger named 'debug' that invokes both of these handlers. What I want is to invoke the 'debug' logger with the name of the current main module when it's different than it was when the previous log was output. That way, when I look at the log file, I'll know when the main module was changed (e.g. when Deno.Output was used to execute an external script).
However, I don't want that information to appear in the console. I expected that if my console formatter returned undefined or null, it would prevent output to the console entirely. Unfortunately, it outputs either the string 'undefined' or 'null' instead. I can, in fact, return '' but then a newline still gets output to the console.
This feature request is to find some way to prevent output entirely in a custom formatter.
The text was updated successfully, but these errors were encountered: