Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logger level #5306

Open
rstevgeniy opened this issue Jun 3, 2024 · 0 comments
Open

Logger level #5306

rstevgeniy opened this issue Jun 3, 2024 · 0 comments

Comments

@rstevgeniy
Copy link

rstevgeniy commented Jun 3, 2024

Should not this

const ACCEPTABLE = {
d: ['debug'],
i: ['debug', 'info'],
w: ['debug', 'info', 'warn'],
e: ['debug', 'info', 'warn', 'error'],
};

be rewritten as this?

const ACCEPTABLE = {
    d: ['debug', 'info', 'warn', 'error'],
    i: ['info', 'warn', 'error'],
    w: ['warn', 'error'],
    e: ['error'],
};

When we set logger level to debug we want all logs of all levels to be shown. And when we set to error we want only errors to be shown.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant