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

Restrict transport to only 1 level #40

Open
jinasonlin opened this issue Mar 22, 2019 · 0 comments
Open

Restrict transport to only 1 level #40

jinasonlin opened this issue Mar 22, 2019 · 0 comments

Comments

@jinasonlin
Copy link

if (!level || this.levels[level] >= this.levels[info[LEVEL]]) {

winston-transport/index.js

Lines 187 to 191 in 07f75f0

if (
info.exception === true ||
!level ||
this.levels[level] >= this.levels[info[LEVEL]]
) {

Is it possible to add levelOnly to restrict transport to only 1 level?

davelopware pushed a commit to davelopware/winston-transport that referenced this issue Apr 7, 2022
Reduced some index.js calls and complexity for some of the eslint issues
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