19 #ifndef INCLUDED_RTL_LOGFILE_HXX 20 #define INCLUDED_RTL_LOGFILE_HXX 142 #define RTL_LOGFILE_CONTEXT( instance, name ) ::rtl::Logfile instance( name ) 143 #define RTL_LOGFILE_CONTEXT_AUTHOR( instance, project, author, name ) ::rtl::Logfile instance(project, author, name ) 144 #define RTL_LOGFILE_CONTEXT_TRACE( instance, message ) \ 145 rtl_logfile_longTrace( "| %s : %s\n", \ 146 instance.getName(), \ 148 #define RTL_LOGFILE_CONTEXT_TRACE1( instance , frmt, arg1 ) \ 149 rtl_logfile_longTrace( "| %s : ", \ 150 instance.getName() ); \ 151 rtl_logfile_trace( frmt , arg1 ); \ 152 rtl_logfile_trace( "\n" ) 153 #define RTL_LOGFILE_CONTEXT_TRACE2( instance , frmt, arg1 , arg2 ) \ 154 rtl_logfile_longTrace( "| %s : ", \ 155 instance.getName() ); \ 156 rtl_logfile_trace( frmt , arg1 , arg2 ); \ 157 rtl_logfile_trace( "\n" ) 158 #define RTL_LOGFILE_CONTEXT_TRACE3( instance , frmt, arg1 , arg2 , arg3 ) \ 159 rtl_logfile_longTrace( "| %s : ", \ 160 instance.getName() ); \ 161 rtl_logfile_trace( frmt , arg1 , arg2 , arg3 ); \ 162 rtl_logfile_trace( "\n" ) 166 #define RTL_LOGFILE_FORWARD_VIA_SAL_LOG(area, message) \ 167 SAL_DETAIL_INFO_IF_FORMAT(SAL_DETAIL_ENABLE_LOG_INFO, area, "%s", message) 169 #define RTL_LOGFILE_CONTEXT( instance, name ) RTL_LOGFILE_FORWARD_VIA_SAL_LOG("logfile", name) 170 #define RTL_LOGFILE_CONTEXT_AUTHOR( instance, project, author, name ) RTL_LOGFILE_FORWARD_VIA_SAL_LOG(project ".logfile", name) 171 #define RTL_LOGFILE_CONTEXT_TRACE( instance, message ) RTL_LOGFILE_FORWARD_VIA_SAL_LOG("logfile", message) 172 #define RTL_LOGFILE_CONTEXT_TRACE1( instance, frmt, arg1 ) ((void)arg1,(void)0) 173 #define RTL_LOGFILE_CONTEXT_TRACE2( instance, frmt, arg1, arg2 ) ((void)arg1,(void)arg2,(void)0) 174 #define RTL_LOGFILE_CONTEXT_TRACE3( instance, frmt, arg1, arg2 , arg3 ) ((void)arg1,(void)arg2,(void)arg3,(void)0) 186 #define RTL_LOGFILE_PRODUCT_TRACE( string ) \ 187 rtl_logfile_longTrace( "| : %s\n", string ) 188 #define RTL_LOGFILE_PRODUCT_TRACE1( frmt, arg1 ) \ 189 rtl_logfile_longTrace( "| : " ); \ 190 rtl_logfile_trace( frmt, arg1 ); \ 191 rtl_logfile_trace( "\n" ) 192 #define RTL_LOGFILE_PRODUCT_CONTEXT( instance, name ) \ 193 ::rtl::Logfile instance( name ) 194 #define RTL_LOGFILE_PRODUCT_CONTEXT_TRACE1( instance, frmt, arg1 ) \ 195 rtl_logfile_longTrace( "| %s : ", \ 196 instance.getName() ); \ 197 rtl_logfile_trace( frmt, arg1 ); \ 198 rtl_logfile_trace( "\n" ) 199 #define RTL_LOGFILE_HASLOGFILE() \ 200 rtl_logfile_hasLogFile() Definition: bootstrap.hxx:24
The intended use for class Logfile is to write time stamp information for profiling purposes...
Definition: logfile.hxx:93
const sal_Char * getStr() const
Returns a pointer to the characters of this string.
Definition: string.hxx:362
SAL_DLLPUBLIC void rtl_logfile_longTrace(char const *format,...)
Like rtl_logfile_trace, but prefixing every log entry with the current time and thread ID...
~Logfile()
Definition: logfile.hxx:130
char sal_Char
A legacy synonym for char.
Definition: types.h:130
This String class provide base functionality for C++ like 8-Bit character array handling.
Definition: string.hxx:88
Logfile(const sal_Char *name)
Definition: logfile.hxx:114
const sal_Char * getName()
Definition: logfile.hxx:135