rcognita.callbacks.Callback
- class rcognita.callbacks.Callback(logger, log_level='info')
This is the base class for a callback object. Callback objects are used to perform some action or computation after a method has been called.
- __init__(logger, log_level='info')
Initialize a callback object.
- Parameters
logger (logging.Logger) – A logging object that will be used to log messages.
log_level (str) – The level at which messages should be logged.
Methods
__init__
(logger[, log_level])Initialize a callback object.
perform
(obj, method, output)