Skip to content

Missing level getter #1513

Description

@mrx23dot

I might be blind, but I couldn't see a simple way to get the current logging level in the doc:
https://loguru.readthedocs.io/en/stable/overview.html

something like

if logger.is_debug:
or 
if logger.level == 'debug':

only
logger.opt(lazy=True).debug(slow eval)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions