Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

Add methods for checking whether a level is enabled #2

Open
divoxx opened this issue Sep 4, 2013 · 0 comments
Open

Add methods for checking whether a level is enabled #2

divoxx opened this issue Sep 4, 2013 · 0 comments
Assignees
Milestone

Comments

@divoxx
Copy link
Owner

divoxx commented Sep 4, 2013

We need to provide a way for callers to check whether a specific level is currently enabled for the log, so they can avoid doing any unnecessary expensive work related to building the arguments for it.

For example:

if log.IsDebugOn() {
}
@ghost ghost assigned divoxx Sep 4, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant