dataeval.log

dataeval.log(level=logging.DEBUG, handler=None)

Add a handler to the logger quickly for debugging.

Calling this more than once is idempotent: a handler equal to one already attached to the logger is not added again, so log lines are not duplicated.

Parameters:
level : int, default logging.DEBUG(10)

Set the logging level for the logger.

handler : logging.Handler, optional

Sets the logging handler for the logger if provided, otherwise logger will be provided with a StreamHandler. When a custom handler is supplied its formatter is left untouched; the default StreamHandler is given a verbose debugging formatter.