14. Logging and Verbose Output

The Febrl system is provided with a logging system and it can display and save to a file logging information with different levels (i.e. different volumes of output). A project log can be defined in a project.py module as shown in the code example below. It is assumed that the febrl.py ,odule has been imported using the import febrl command (as the ProjectLog class is implemented in the febrl module), and a project myproject has been initialised (see also Chapter 5).

# ====================================================================

mylog = febrl.ProjectLog(file_name = 'myfebrl.log',
                           project = myproject,
                         log_level = 1,
                     verbose_level = 1,
                         clear_log = True,
                           no_warn = False,
                    parallel_print = 'host')

The following arguments can be given to a project log when it is initialised.

Note: The current version of the Febrl system only supports logging into text files. Future version will provide logging into other formats as well, for example HTML, XML or LATEX.