consola icon indicating copy to clipboard operation
consola copied to clipboard

`trace`-level logs should not include the stack of the `consola` module itself

Open trevor-vaughan opened this issue 2 years ago • 1 comments

Environment

All

Reproduction

Run a log at the trace level and the following output results:

at FancyReporter.formatLogObj (node_modules/consola/dist/shared/consola.4bbae468.cjs:597:20)
at FancyReporter.log (node_modules/consola/dist/shared/consola.deac7d5a.cjs:53:23)
at Consola._log (node_modules/consola/dist/core.cjs:383:16)
at resolveLog (node_modules/consola/dist/core.cjs:351:14)
at Consola._logFn (node_modules/consola/dist/core.cjs:379:5)
at node_modules/consola/dist/core.cjs:308:19 
<actual application trace>

Describe the bug

A trace from the application should not end up with noise from the logging library.

Additional context

In theory, you could reject all lines that start with node_modules/consola from the trace.

Logs

No response

trevor-vaughan avatar Jul 07 '23 17:07 trevor-vaughan

Relates to #194

trevor-vaughan avatar Jul 07 '23 17:07 trevor-vaughan