logged

sknano.core.logged(func=None, *, level=10, name=None, message=None)[source] [edit on github][source]

Decorator to add logging to a function.

Parameters:
  • func (callable) – Decorated function
  • level (int) – Logging level
  • name (str, optional) – Logger name
  • message (str, optional) – Log message