Module panama.logging.decorators
Functions
def log_execution(logger_name: Optional[str] = None, level: int = 20, blocking: bool = True)
-
Decorator function, used to retrieve the logger by logger name and log the operations of a function.
Args
logger_name
:Union[str, None]
, optional- name of the logger to retrieve. If None, the root logger is used. Defaults to None.
level
:int
, optional- level of the log step. Defaults to panama_log.INFO.
blocking
:bool
, optional- flag that indicates if the task must be closed and the error raised. Defaults to True.