Skip to content

Specify log level with Node environment variable #227

Open
@bennycode

Description

@bennycode

With NODE_DEBUG it's possible to specify logger names which should be active. Is there also a setting to specify the log level?

For example, I would like to see only logs from "foo" which have log level "warning" or "error" but no "debug", "info" and/or "log".

I would like to set something like:

NODE_DEBUG=foo NODE_DEBUG_LEVEL=error,warn node example/node.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions