My Project
UDK 3.2.7 C/C++ API Reference
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
rtl
logfile.h
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*************************************************************************
3
*
4
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
*
6
* Copyright 2000, 2010 Oracle and/or its affiliates.
7
*
8
* OpenOffice.org - a multi-platform office productivity suite
9
*
10
* This file is part of OpenOffice.org.
11
*
12
* OpenOffice.org is free software: you can redistribute it and/or modify
13
* it under the terms of the GNU Lesser General Public License version 3
14
* only, as published by the Free Software Foundation.
15
*
16
* OpenOffice.org is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Lesser General Public License version 3 for more details
20
* (a copy is included in the LICENSE file that accompanied this code).
21
*
22
* You should have received a copy of the GNU Lesser General Public License
23
* version 3 along with OpenOffice.org. If not, see
24
* <http://www.openoffice.org/license.html>
25
* for a copy of the LGPLv3 License.
26
*
27
************************************************************************/
28
#ifndef _RTL_LOGFILE_H_
29
#define _RTL_LOGFILE_H_
30
31
#include <
sal/types.h
>
32
33
#ifdef __cplusplus
34
extern
"C"
{
35
#endif
36
37
52
SAL_DLLPUBLIC
void
SAL_CALL
rtl_logfile_trace
(
const
sal_Char
* pszFormat, ... );
53
66
SAL_DLLPUBLIC
void
SAL_CALL
rtl_logfile_longTrace
(
char
const
* format, ...);
67
74
SAL_DLLPUBLIC
sal_Bool
SAL_CALL
rtl_logfile_hasLogFile
(
void
);
75
76
#ifdef __cplusplus
77
}
78
#endif
79
80
#ifdef TIMELOG
81
#define RTL_LOGFILE_TRACE( string ) \
82
rtl_logfile_longTrace( "| : %s\n", string )
83
#define RTL_LOGFILE_TRACE1( frmt, arg1 ) \
84
rtl_logfile_longTrace( "| : " ); \
85
rtl_logfile_trace( frmt, arg1 ); \
86
rtl_logfile_trace( "\n" )
87
88
#define RTL_LOGFILE_TRACE2( frmt, arg1 , arg2 ) \
89
rtl_logfile_longTrace( "| : " ); \
90
rtl_logfile_trace( frmt, arg1 , arg2 ); \
91
rtl_logfile_trace( "\n" )
92
#define RTL_LOGFILE_TRACE3( frmt, arg1 , arg2 , arg3 ) \
93
rtl_logfile_longTrace( "| : " ); \
94
rtl_logfile_trace( frmt, arg1 , arg2 , arg3 ); \
95
rtl_logfile_trace( "\n" )
96
97
// Now the macros with project and author arguments. The strings
98
// are formatted in a way, so that the log file can be parsed by
99
// post processing scripts.
100
#define RTL_LOGFILE_TRACE_AUTHOR( project, author, string ) \
101
rtl_logfile_longTrace( "| %s (%s) : %s\n", \
102
project,\
103
author,\
104
string )
105
#define RTL_LOGFILE_TRACE_AUTHOR1( project, author, frmt, arg1 ) \
106
rtl_logfile_longTrace( "| %s (%s) : ", \
107
project,\
108
author );\
109
rtl_logfile_trace( frmt, arg1 ); \
110
rtl_logfile_trace( "\n" )
111
112
#define RTL_LOGFILE_TRACE_AUTHOR2( project, author, frmt, arg1 , arg2 ) \
113
rtl_logfile_longTrace( "| %s (%s) : ", \
114
project,\
115
author ); \
116
rtl_logfile_trace( frmt, arg1 , arg2 ); \
117
rtl_logfile_trace( "\n" )
118
#define RTL_LOGFILE_TRACE_AUTHOR3( project, author, frmt, arg1 , arg2 , arg3 ) \
119
rtl_logfile_longTrace( "| %s (%s) : ", \
120
project,\
121
author ); \
122
rtl_logfile_trace( frmt, arg1 , arg2 , arg3 ); \
123
rtl_logfile_trace( "\n" )
124
#else
125
#define RTL_LOGFILE_TRACE( string ) ((void)0)
126
#define RTL_LOGFILE_TRACE1( frmt, arg1 ) ((void)0)
127
#define RTL_LOGFILE_TRACE2( frmt, arg1 , arg2 ) ((void)0)
128
#define RTL_LOGFILE_TRACE3( frmt, arg1 , arg2 , arg3 ) ((void)0)
129
130
#define RTL_LOGFILE_TRACE_AUTHOR( project, author, string ) ((void)0)
131
#define RTL_LOGFILE_TRACE_AUTHOR1( project, author, frmt, arg1 ) ((void)0)
132
#define RTL_LOGFILE_TRACE_AUTHOR2( project, author, frmt, arg1 , arg2 ) ((void)0)
133
#define RTL_LOGFILE_TRACE_AUTHOR3( project, author, frmt, arg1 , arg2 , arg3 ) ((void)0)
134
#endif // TIMELOG
135
#endif
136
137
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Generated on Mon Oct 8 2012 00:36:42 for My Project by
1.8.1.2