finam.tools.ErrorLogger#

class finam.tools.ErrorLogger(logger=None, do_log=True)[source]#

Bases: AbstractContextManager

Context manager to log Exceptions.

Parameters:
  • logger (string, None or logging.Logger instance, optional) – Logger name to use. Will be the root logger by default.

  • do_log (Bool, optional) – Whether to really log errors. Will be true by default.