logit

logit#

class tollan.utils.log.logit(log_func: Callable, msg: str, base_depth: int = 0)[source]#

Bases: ContextDecorator

Decorator/context manager to log entry and exit of a function or code block.

Parameters:
  • log_func (callable) – Logging function (e.g., logger.info)

  • msg (str) – Message to log

  • base_depth (int, optional) – Stack depth adjustment (default: 0)

Methods Summary

__call__(*args, **kwargs)

Call self as a function.

Methods Documentation

__call__(*args: Any, **kwargs: Any) Any[source]#

Call self as a function.