automl.logger
ColoredFormatter Objects
class ColoredFormatter(logging.Formatter)
RESET
Reset to default
init_logger
def init_logger(name=None)
Return a logger configured with the FLAML console handler and formatter.
Idempotent: if the logger already has handlers attached, the existing
handlers are preserved and no new handler is added. propagate is
always set to False so the FLAML console handler is not duplicated
by ancestor loggers.
Arguments:
name- Logger name to retrieve vialogging.getLogger(name). Defaults toNone, which returns the module's existing logger (flaml.automl.logger). Typical callers pass__name__.
Returns:
The configured logging.Logger instance.