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

Extending FieldLogger interface to support IsLevelEnabled and SetLevel #1205

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

koote
Copy link

@koote koote commented Nov 20, 2020

This PR adds IsLevelEnabled function to FieldLogger interface, fix #1204

@koote koote changed the title Adding IsLevelEnabled in FieldLogger interface Adding IsLevelEnabled and SetLevel in FieldLogger interface Nov 20, 2020
@koote koote changed the title Adding IsLevelEnabled and SetLevel in FieldLogger interface Extending FieldLogger interface to support IsLevelEnabled and SetLevel Nov 20, 2020
@@ -176,6 +176,12 @@ type FieldLogger interface {
// IsPanicEnabled() bool
}

type Ext2FieldLogger interface {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather not have this new interface.
If a package user needs that, they can easily define it at use side

@dgsb dgsb added the stale label Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FieldLogger doesn't support IsLevelEnabled
2 participants