Dorieh Core Package-wide utilities

app_name() str[source]

Constructs application name. This application name can be used to identify the application to the database process or in the log file

Returns:

A string, containing application name

init_logging(with_thread_id=False, name=None, level=10)[source]

Initializes logging. By default, log is written to a file and copied to the standard output

Parameters:
  • with_thread_id – if True, then thread numerical id is added to the log

  • name – name of the application to be used by logger. By default, the name would be constructed by :func:app_name

  • level – Log level, default is DEBUG

Returns: