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
but unfortunately when you do console.log , even when you pass a level field, it's not passed to consola as a loglevel. Any idea how to make this work? (we need a centralized middlerware/pluging around all our logs)
The text was updated successfully, but these errors were encountered:
I use CONSOLA_LEVEL to try to have 2 commands in my package.json that show more or less logs depending on what kind of development I'm doing,
Unfortunately though the only thing I seem to be able to achieve is either hide all logs, or show all logs, without respecting the log level.
I believe this is because I use a custom reporter,
and because I don't log with
consola
but withconsole
:(I need this for our production monitoring/logging system (datadog))
So I changed the setReporters above and did this instead:
but unfortunately when you do
console.log
, even when you pass alevel
field, it's not passed to consola as a loglevel. Any idea how to make this work? (we need a centralized middlerware/pluging around all our logs)The text was updated successfully, but these errors were encountered: