Skip to content

Conversation

@kgajera
Copy link
Contributor

@kgajera kgajera commented Mar 23, 2019

Added types for isLevelEnabled(level: string) and isXXXEnabled() for each of the default npm levels.

Not sure what the best approach is for the isXXXEnabled() functions. Let me know if you have any thoughts or would like to remove these altogether.

Resolves #1621

@DABH
Copy link
Contributor

DABH commented Mar 24, 2019

That looks fine to me. I think it's a reasonable policy to explicitly add isXXXEnabled() for any level that's supported out of the box in winston (but not for anybody's custom levels, of course -- they can just use isLevelEnabled).

Thanks!

@DABH DABH merged commit 1a75544 into winstonjs:master Mar 24, 2019
Mizumaki pushed a commit to Mizumaki/winston that referenced this pull request Jun 11, 2020
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

Successfully merging this pull request may close these issues.

2 participants