Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Log customization in OpenContrail

OpenContrail supports log configuration in three ways

  1. Use the default logging provided by OpenContrail.
  2. Define your own log configuration file using based on the python logging
  3. Define new logging mechanism by implementing a new logger.

The file '' defines a logging mechanism by using the oslo logging.

Using this approach, the user can use the same logging format used in other OpenStack components.

To use '' in your setup define the below parameters in the default section of your contrail configuration files

logger_class = contrail_oslo_logger.ContrailOsloLogger

logging_conf = /etc/contrail/contrail-oslo-sample.conf

Make sure that '' is loadable. Copying this file to '/usr/lib/python2.7/dist-packages/pysandesh/' would work.

You can’t perform that action at this time.