Atom feed of this document
 

 Logging Settings

Quantum components use Python logging module to do logging. Logging configuration can be provided in quantum.conf or as command line options. Command options will override ones in quantum.conf.

Two ways to specify the logging configuration for Quantum components:

  1. Provide logging settings in a logging configuration file.

    Please see Python Logging HOWTO for logging configuration file.

  2. Provide logging setting in quantum.conf

                        
    [DEFAULT]
    # Default log level is WARNING
    # Show debugging output in logs (sets DEBUG log level output)
    # debug = False
    
    # Show more verbose log output (sets INFO log level output) if debug is False
    # verbose = False
    
    # log_format = %(asctime)s %(levelname)8s [%(name)s] %(message)s
    # log_date_format = %Y-%m-%d %H:%M:%S
    
    # use_syslog = False
    # syslog_log_facility = LOG_USER
    
    # if use_syslog is False, we can set log_file and log_dir.
    # if use_syslog is False and we do not set log_file,
    # the log will be printed to stdout.
    # log_file =
    # log_dir =
                    


loading table of contents...