lisa.utils.Loggable#

class lisa.utils.Loggable[source]#

Bases: object

A simple class for uniformly named loggers

Properties

logger

Convenience short-hand for self.get_logger().

Methods

get_logger()

Provides a logging.Logger named after cls.

log_locals()

Debugging aid: log the local variables of the calling function.

Properties#

property Loggable.logger[source]#

Convenience short-hand for self.get_logger().

Methods#

classmethod Loggable.get_logger(suffix=None)[source]#

Provides a logging.Logger named after cls.

classmethod Loggable.log_locals(var_names=None, level='debug')[source]#

Debugging aid: log the local variables of the calling function

Parameters:
  • var_names (list(str)) – List of variable names to display, or all of them if left to default.

  • level (str) – log level to use.