Next: , Previous: Setting up protocol personalities, Up: Building an application with PolyORB


4.4 Activating debugging traces

To activate the output of debug information, you must first configure and compile PolyORB with debugging traces activated (which is the default, unless your build is configured with --enable-debug-policy=ignore).

To output debugging traces on a selected package, create a configuration file with a [log] section and the name of the packages for which you want debug information:

     # Sample configuration file, output debug for PolyORB.A_Package
     [log]
     polyorb.a_package=debug

Note that some packages may not provide such information. See the sample configuration file src/polyorb.conf for the complete list of packages that provide traces.

A default logging level may be specified using a line of the form

     default=<level>

Time stamps may optionally be prepended to every generated trace. This is enabled using:

     timestamp=true