muteria.controller.logging_setup module

This module contains functions to setup the logging facility. The logging facility make use of the standard logging lib.

  • The function console_tmp_log_setup set the format of the log

    to stdout to display logs before the directory containing the project’s log files is created. (allow to pretty print status or error on stdout)

  • The function setup sets up the log facility to log into files.

    The function must be called only Once

muteria.controller.logging_setup.console_tmp_log_setup(loglevel=20, root_name='')[source]
muteria.controller.logging_setup.is_setup()[source]
muteria.controller.logging_setup.setup(logfile=None, logconsole=False, file_level=20, console_level=20, file_max_bytes=20000, n_file_backups=1, root_name='')[source]