gustaf.utils.log.prepended_log#
- gustaf.utils.log.prepended_log(message, log_func, as_method=True)[source]#
Prepend message before a logging function.
- Parameters:
message (str)
log_func (function) – one of the following - {info, debug, warning}
as_method (bool) – If True, uses partialmethod, else partial. Default is True.
- Returns:
prepended
- Return type:
function