Skip to content

NOTSET attribute does not supress printing log messages. #35

Closed
@jcoreysc

Description

@jcoreysc

According to the Documentation using the NOTSET attribute should prevent printing of log records. It does not.

I am using Circuit Python 7.3.1 and adafruit_logging version 4.1.1 on a Raspberry PI Pico.

Here is my code:

import adafruit_logging as logging

logger = logging.getLogger("test")
print_logger = logging.StreamHandler()
logger.addHandler(print_logger)

logger.setLevel(logging.NOTSET)
logger.info("Info message\n")
logger.error("Error message\n")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions