autonomy_toolkit.utils.logger#
Provides a custom logger object.
Should be used like the following:
from autonomy_toolkit.utils.logger import LOGGER
LOGGER.fatal("Fatal")
LOGGER.error("Error")
LOGGER.warn("Warning")
LOGGER.info("Information")
LOGGER.debug("Debug")
Module Contents#
Functions#
|
Set the verbosity level for the logger. |
|
Dumps a dictionary in a pretty-ish format to the logger. |
- set_verbosity(verbosity: int)[source]#
Set the verbosity level for the logger. Default verbosity is WARNING.
verbosityshould be a value greater than 0 and less than 2 that represents how many levels below WARNING is desired. For instance, ifverbosityis 1, the new level will be INFO because that is one below WARNING. Ifverbosityis 2, the new level is DEBUG. DEBUG and INFO are currently the only two implemented- Parameters:
verbosity (int) – A value between 0 and 2 that represents the number of levels below WARNING that should be used when logging.