Fork me on GitHub

bolero.utils.log.get_logger

bolero.utils.log.get_logger(obj, log_to_file, log_to_stdout)[source]

Get logger for given object.

Removes all previously assigned handlers from the logger.

Parameters:
obj : Unknown

Some object

log_to_file: optional, boolean or string (default: False)

Log results to given file, it will be located in the $BL_LOG_PATH

log_to_stdout: optional, boolean (default: False)

Log to standard output

Returns:
logger : Logger

Logger object