19 #ifndef _RTL_LOGFILE_HXX_
20 #define _RTL_LOGFILE_HXX_
139 #define RTL_LOGFILE_CONTEXT( instance, name ) ::rtl::Logfile instance( name )
140 #define RTL_LOGFILE_CONTEXT_AUTHOR( instance, project, author, name ) ::rtl::Logfile instance(project, author, name )
141 #define RTL_LOGFILE_CONTEXT_TRACE( instance, message ) \
142 rtl_logfile_longTrace( "| %s : %s\n", \
143 instance.getName(), \
145 #define RTL_LOGFILE_CONTEXT_TRACE1( instance , frmt, arg1 ) \
146 rtl_logfile_longTrace( "| %s : ", \
147 instance.getName() ); \
148 rtl_logfile_trace( frmt , arg1 ); \
149 rtl_logfile_trace( "\n" )
150 #define RTL_LOGFILE_CONTEXT_TRACE2( instance , frmt, arg1 , arg2 ) \
151 rtl_logfile_longTrace( "| %s : ", \
152 instance.getName() ); \
153 rtl_logfile_trace( frmt , arg1 , arg2 ); \
154 rtl_logfile_trace( "\n" )
155 #define RTL_LOGFILE_CONTEXT_TRACE3( instance , frmt, arg1 , arg2 , arg3 ) \
156 rtl_logfile_longTrace( "| %s : ", \
157 instance.getName() ); \
158 rtl_logfile_trace( frmt , arg1 , arg2 , arg3 ); \
159 rtl_logfile_trace( "\n" )
162 #define RTL_LOGFILE_CONTEXT( instance, name ) ((void)0)
163 #define RTL_LOGFILE_CONTEXT_AUTHOR( instance, project, author, name ) ((void)0)
164 #define RTL_LOGFILE_CONTEXT_TRACE( instance, message ) ((void)0)
165 #define RTL_LOGFILE_CONTEXT_TRACE1( instance, frmt, arg1 ) ((void)arg1,(void)0)
166 #define RTL_LOGFILE_CONTEXT_TRACE2( instance, frmt, arg1, arg2 ) ((void)arg1,(void)arg2,(void)0)
167 #define RTL_LOGFILE_CONTEXT_TRACE3( instance, frmt, arg1, arg2 , arg3 ) ((void)arg1,(void)arg2,(void)arg3,(void)0)
179 #define RTL_LOGFILE_PRODUCT_TRACE( string ) \
180 rtl_logfile_longTrace( "| : %s\n", string )
181 #define RTL_LOGFILE_PRODUCT_TRACE1( frmt, arg1 ) \
182 rtl_logfile_longTrace( "| : " ); \
183 rtl_logfile_trace( frmt, arg1 ); \
184 rtl_logfile_trace( "\n" )
185 #define RTL_LOGFILE_PRODUCT_CONTEXT( instance, name ) \
186 ::rtl::Logfile instance( name )
187 #define RTL_LOGFILE_PRODUCT_CONTEXT_TRACE1( instance, frmt, arg1 ) \
188 rtl_logfile_longTrace( "| %s : ", \
189 instance.getName() ); \
190 rtl_logfile_trace( frmt, arg1 ); \
191 rtl_logfile_trace( "\n" )
192 #define RTL_LOGFILE_HASLOGFILE() \
193 rtl_logfile_hasLogFile()