Uno/Spec/Log Environment

From Apache OpenOffice Wiki
< Uno‎ | Spec
Revision as of 11:11, 17 July 2009 by ErAck (Talk | contribs)

Jump to: navigation, search

Feature

The Log purpose environment allows to log every UNO call to a defined component. The runtime environment variable UNO_ENV_LOG defines which components should be logged. The value is a list of component names separated by semicolon (;). The log file must have been defined by the RTL_LOGFILE variable.

API

Specifying the to be logged components via environment variables.

For example:

setenv "UNO_ENV_LOG" "com.sun.star.sdbcx.comp.hsqldb.Driver"
setenv "RTL_LOGFILE" "/tmp/log_test"

The would trace all calls from the HsqlDB driver in OOo.

Runtime environment variable:

"UNO_ENV_LOG"
"RTL_LOGFILE"

Dependencies

Personal tools