class documentation

Context manager that allows for a temporary change to the level of a logging.Logger.

Example:

   import logging
   import fiftyone.core.utils as fou

   with fou.LoggingLevel(logging.CRITICAL):
       # do things with all logging at CRITICAL

   with fou.LoggingLevel(logging.ERROR, logger="fiftyone"):
       # do things with FiftyOne logging at ERROR

Args:
   level: the logging level to use, e.g., ``logging.ERROR``
   logger (None): a ``logging.Logger`` or the name of a logger. By
       default, the root logger is used
Method __enter__ Undocumented
Method __exit__ Undocumented
Method __init__ Undocumented
Instance Variable _level Undocumented
Instance Variable _level_orig Undocumented
Instance Variable _logger Undocumented
def __enter__(self): (source)

Undocumented

def __exit__(self, *args): (source)

Undocumented

def __init__(self, level, logger=None): (source)

Undocumented

Undocumented

_level_orig = (source)

Undocumented

Undocumented