Difference between revisions of "Uno/Spec/Log Environment"

From Apache OpenOffice Wiki
< Uno‎ | Spec
Jump to: navigation, search
(New page: ==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 val...)
 
Line 21: Line 21:
 
[[Category:Uno]]
 
[[Category:Uno]]
 
[[Category:Uno:Spec]]
 
[[Category:Uno:Spec]]
 +
[[Category:Development]]

Revision as of 11:11, 17 July 2009

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