Replies: 6 comments 2 replies
-
Adding out of the box suppression would be "surprising" to the established de facto precedent established. Because the primitive logging is often not sufficient for a lot of workloads, people tend to use a logging framework. There is a logging framework as part of If you are dealing with 3rd part code, then you might want to consider either patching the global In the end, Deno treats |
Beta Was this translation helpful? Give feedback.
-
I figured I'd share my workaround if anyone else comes here disappointed. You could search and replace the different levels project wide, like |
Beta Was this translation helpful? Give feedback.
-
We really need a console.setLevel() method in the standard. And stop using third party libraries for such a basic use case. I am dreaming for years with it |
Beta Was this translation helpful? Give feedback.
-
Browser UI allows filtering of output based on log levels. I'd say, adding command line argument to have similar filtering in the CLI application makes a wolrd of sense. |
Beta Was this translation helpful? Give feedback.
-
I think we could add a flag that allows filtering. Before we do that, an issue with proposed flag name should be opened and agreed upon. |
Beta Was this translation helpful? Give feedback.
-
Right now, Letting us specify an append-only destination for each level on the command line, being a file handle number or an actual file path, wouldn't do any suppression by itself but offer more flexibility. People could also choose to suppress by sending those logs to /dev/null. Invoked from Bash, this would even let you stream logs over the network directly (using Bash's builtin network support). |
Beta Was this translation helpful? Give feedback.
-
I assumed that setting the log-level to info would prevent messages passed to
console.debug
from appearing, however this doesn't seem to be the case:Is there away to have only messages passed to
console.info
but not those passed toconsole.debug
?Beta Was this translation helpful? Give feedback.
All reactions