19 #ifndef INCLUDED_RTL_LOGFILE_H
20 #define INCLUDED_RTL_LOGFILE_H
75 #define RTL_LOGFILE_TRACE( string ) \
76 rtl_logfile_longTrace( "| : %s\n", string )
77 #define RTL_LOGFILE_TRACE1( frmt, arg1 ) \
78 rtl_logfile_longTrace( "| : " ); \
79 rtl_logfile_trace( frmt, arg1 ); \
80 rtl_logfile_trace( "\n" )
82 #define RTL_LOGFILE_TRACE2( frmt, arg1 , arg2 ) \
83 rtl_logfile_longTrace( "| : " ); \
84 rtl_logfile_trace( frmt, arg1 , arg2 ); \
85 rtl_logfile_trace( "\n" )
86 #define RTL_LOGFILE_TRACE3( frmt, arg1 , arg2 , arg3 ) \
87 rtl_logfile_longTrace( "| : " ); \
88 rtl_logfile_trace( frmt, arg1 , arg2 , arg3 ); \
89 rtl_logfile_trace( "\n" )
94 #define RTL_LOGFILE_TRACE_AUTHOR( project, author, string ) \
95 rtl_logfile_longTrace( "| %s (%s) : %s\n", \
99 #define RTL_LOGFILE_TRACE_AUTHOR1( project, author, frmt, arg1 ) \
100 rtl_logfile_longTrace( "| %s (%s) : ", \
103 rtl_logfile_trace( frmt, arg1 ); \
104 rtl_logfile_trace( "\n" )
106 #define RTL_LOGFILE_TRACE_AUTHOR2( project, author, frmt, arg1 , arg2 ) \
107 rtl_logfile_longTrace( "| %s (%s) : ", \
110 rtl_logfile_trace( frmt, arg1 , arg2 ); \
111 rtl_logfile_trace( "\n" )
112 #define RTL_LOGFILE_TRACE_AUTHOR3( project, author, frmt, arg1 , arg2 , arg3 ) \
113 rtl_logfile_longTrace( "| %s (%s) : ", \
116 rtl_logfile_trace( frmt, arg1 , arg2 , arg3 ); \
117 rtl_logfile_trace( "\n" )
119 #define RTL_LOGFILE_TRACE( string ) ((void)0)
120 #define RTL_LOGFILE_TRACE1( frmt, arg1 ) ((void)0)
121 #define RTL_LOGFILE_TRACE2( frmt, arg1 , arg2 ) ((void)0)
122 #define RTL_LOGFILE_TRACE3( frmt, arg1 , arg2 , arg3 ) ((void)0)
124 #define RTL_LOGFILE_TRACE_AUTHOR( project, author, string ) ((void)0)
125 #define RTL_LOGFILE_TRACE_AUTHOR1( project, author, frmt, arg1 ) ((void)0)
126 #define RTL_LOGFILE_TRACE_AUTHOR2( project, author, frmt, arg1 , arg2 ) ((void)0)
127 #define RTL_LOGFILE_TRACE_AUTHOR3( project, author, frmt, arg1 , arg2 , arg3 ) ((void)0)
SAL_DLLPUBLIC sal_Bool rtl_logfile_hasLogFile(void)
Return if a log file is written.
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...
SAL_DLLPUBLIC void rtl_logfile_trace(const sal_Char *pszFormat,...)
This function allows to log arbitrary messages even in a product-environment.
unsigned char sal_Bool
Definition: types.h:46
#define SAL_DLLPUBLIC
Definition: saldllapi.h:30
char sal_Char
Definition: types.h:124