28 #ifndef _RTL_LOGFILE_HXX_
29 #define _RTL_LOGFILE_HXX_
148 #define RTL_LOGFILE_CONTEXT( instance, name ) ::rtl::Logfile instance( name )
149 #define RTL_LOGFILE_CONTEXT_AUTHOR( instance, project, author, name ) ::rtl::Logfile instance(project, author, name )
150 #define RTL_LOGFILE_CONTEXT_TRACE( instance, message ) \
151 rtl_logfile_longTrace( "| %s : %s\n", \
152 instance.getName(), \
154 #define RTL_LOGFILE_CONTEXT_TRACE1( instance , frmt, arg1 ) \
155 rtl_logfile_longTrace( "| %s : ", \
156 instance.getName() ); \
157 rtl_logfile_trace( frmt , arg1 ); \
158 rtl_logfile_trace( "\n" )
159 #define RTL_LOGFILE_CONTEXT_TRACE2( instance , frmt, arg1 , arg2 ) \
160 rtl_logfile_longTrace( "| %s : ", \
161 instance.getName() ); \
162 rtl_logfile_trace( frmt , arg1 , arg2 ); \
163 rtl_logfile_trace( "\n" )
164 #define RTL_LOGFILE_CONTEXT_TRACE3( instance , frmt, arg1 , arg2 , arg3 ) \
165 rtl_logfile_longTrace( "| %s : ", \
166 instance.getName() ); \
167 rtl_logfile_trace( frmt , arg1 , arg2 , arg3 ); \
168 rtl_logfile_trace( "\n" )
171 #define RTL_LOGFILE_CONTEXT( instance, name ) ((void)0)
172 #define RTL_LOGFILE_CONTEXT_AUTHOR( instance, project, author, name ) ((void)0)
173 #define RTL_LOGFILE_CONTEXT_TRACE( instance, message ) ((void)0)
174 #define RTL_LOGFILE_CONTEXT_TRACE1( instance, frmt, arg1 ) ((void)0)
175 #define RTL_LOGFILE_CONTEXT_TRACE2( instance, frmt, arg1, arg2 ) ((void)0)
176 #define RTL_LOGFILE_CONTEXT_TRACE3( instance, frmt, arg1, arg2 , arg3 ) ((void)0)
188 #define RTL_LOGFILE_PRODUCT_TRACE( string ) \
189 rtl_logfile_longTrace( "| : %s\n", string )
190 #define RTL_LOGFILE_PRODUCT_TRACE1( frmt, arg1 ) \
191 rtl_logfile_longTrace( "| : " ); \
192 rtl_logfile_trace( frmt, arg1 ); \
193 rtl_logfile_trace( "\n" )
194 #define RTL_LOGFILE_PRODUCT_CONTEXT( instance, name ) \
195 ::rtl::Logfile instance( name )
196 #define RTL_LOGFILE_PRODUCT_CONTEXT_TRACE1( instance, frmt, arg1 ) \
197 rtl_logfile_longTrace( "| %s : ", \
198 instance.getName() ); \
199 rtl_logfile_trace( frmt, arg1 ); \
200 rtl_logfile_trace( "\n" )
201 #define RTL_LOGFILE_HASLOGFILE() \
202 rtl_logfile_hasLogFile()