rcognita.callbacks.method_callback

rcognita.callbacks.method_callback(method_name, class_name=None, log_level='debug')

Creates a callback class that logs the output of a specific method of a class or any class.

Parameters
  • method_name (str) – Name of the method to log output for.

  • class_name (str or class) – (Optional) Name of the class the method belongs to. If not specified, the callback will log the output for the method of any class.

  • log_level (str) – (Optional) The level of logging to use. Default is “debug”.