Uno/Spec/Log Environment

From Apache OpenOffice Wiki
< Uno‎ | Spec
Jump to: navigation, search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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