Skip to content

Add typings for the isLevelEnabled(string) and isXXXEnabled() functions #1622

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

Merged
merged 1 commit into from
Mar 24, 2019
Merged

Add typings for the isLevelEnabled(string) and isXXXEnabled() functions #1622

merged 1 commit into from
Mar 24, 2019

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.

None yet

2 participants