Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


Global Functions in Global Namespace C++
in Sourcefile logfile.h


rtl_logfile_hasLogFile
extern "C"
sal_Bool rtl_logfile_hasLogFile(
void );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO YES

Summary
Return if a log file is written.
Return
true if a log file is written
Since
UDK 3.2.11

rtl_logfile_longTrace
extern "C"
void rtl_logfile_longTrace(
const char * format,
... );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO YES

Summary
Like rtl_logfile_trace, but prefixing every log entry with the current time and thread ID.
Parameters
format
a format string with fprintf-like syntax

...
an arbitrary number of arguments for fprintf, matching the given format
string

Since
UDK 3.2.0

rtl_logfile_trace
extern "C"
void rtl_logfile_trace(
const sal_Char * pszFormat,
... );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO YES

Summary
This function allows to log arbitrary messages even in a product-environment.
Description
The logfile is created on first access and closed, when the sal-library gets unloaded. The file is line buffered. A log file is not created if no log messages are written. The first time, rtl_logfile_trace is called, it checks for the bootstrap variable RTL_LOGFILE. If the variable is not empty, it creates a file with the name $(RTL_LOGFILE)_$(PID).log, where $(PID) is the process id of the running process.
Parameters
pszformat
A format string with fprintf-syntax
    
...
An arbitrary number of arguments for fprintf, matching the
                     format string.

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.