linotp.lib.logs module

linotp.lib.logs.init_logging_config()

Loads the persistent logging configuration from the database

Should be called ONCE at the start of the server

linotp.lib.logs.log_enter_exit(logger)

A decorator that logs entry and exit points of the function it decorates. By default all function arguments and return values are logged.

Parameters

logger – The logger object that should be used

linotp.lib.logs.log_request_timedelta(logger)

this function logs the time delta between the start and the end of the request and should be called at the end.

Parameters

logger – The logger that should be used

linotp.lib.logs.log_timedelta(logger)

Decorator to log time spent in processing a function from its entry point to its return.

Parameters

logger – The logger object that should be used

linotp.lib.logs.set_logging_level(name, level)

sets the logging level in the database as well as in the current running logger

Parameters
  • name – Name of the logger

  • level – New level (must be integer)