Skip to content

disable LOG for modules #377

@Pog3k

Description

@Pog3k

In order to easily disable log messages from a python module
we want to a function which helps users to do that.

for logger in logging.root.manager.loggerDict.values():
    if isinstance(logger, logging.Logger) and "cc_usb" in logger.name:
        logger.setLevel(logging.CRITICAL)

Note

May add functionality for convienence like adding patterns
“cc_*”

utils module can be created inside pykiso.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requestsize SComplexity of the ticket

    Type

    No type

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions