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

Ability to log with level="ERROR" #74

Open
anz-opata opened this issue Oct 21, 2020 · 1 comment
Open

Ability to log with level="ERROR" #74

anz-opata opened this issue Oct 21, 2020 · 1 comment

Comments

@anz-opata
Copy link

The Logger interface allows messages to be logged at three levels (debug, info, error), but the level can only be conveyed to Formatter.Format via the LogEntry struct.

Currently the LogEntry struct communicates this information between Logger and Formatter via a boolean field Verbose, which obviously only allows 2 levels to be differentiated.

Is there an intention to extend this API to allow all three levels to be communicated between Logger and Formatter?

@anz-opata
Copy link
Author

I can see from #15 that there was a deliberate decision to log this with level=INFO, but I wonder whether this is unnecessarily restrictive and somewhat misleading.

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