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

Add methods for checking whether a level is enabled #2

@divoxx

Description

@divoxx

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() {
}

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions