Skip to content

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

Open
@trevor-vaughan

Description

@trevor-vaughan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions