neurokernel.mixins.LoggerMixin

class neurokernel.mixins.LoggerMixin(name, log_on=True)[source]

Mixin that provides a per-instance logger that can be turned off.

Parameters:
  • name (str) – Name to assign logger.
  • log_on (bool) – Initial value to assign to class instance’s log_on property.
log_on

bool – If set to False, the logger’s methods will silently do nothing when called.

log_debug(), log_info(), log_warning(), log_error(), log_critical()

Emit a log message at the level corresponding to the method name.

__init__(name, log_on=True)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

Methods

__init__(name[, log_on]) x.__init__(…) initializes x; see help(type(x)) for signature

Attributes

log_on Logger switch.