24
|
1 |
// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
#ifndef _SIMTSYLOG_H_
|
|
17 |
#define _SIMTSYLOG_H_
|
|
18 |
|
|
19 |
/**
|
|
20 |
* @file
|
|
21 |
*
|
|
22 |
* Logging macros for SimTSY. These use the Comms Debug Utility framework
|
|
23 |
* (aka Flogger V2).
|
|
24 |
*
|
|
25 |
* To enable logging create a file called "comsdbg.ini" in the Symbian OS
|
|
26 |
* "C:\Logs\" directory which contains the following lines:
|
|
27 |
*
|
|
28 |
* MEDIA FILE
|
|
29 |
* LOG SIMTSY Common
|
|
30 |
* LOG SIMTSY Config
|
|
31 |
* LOG SIMTSY Phone
|
|
32 |
* LOG SIMTSY Line
|
|
33 |
* LOG SIMTSY Call
|
|
34 |
* LOG SIMTSY Voice
|
|
35 |
* LOG SIMTSY Data
|
|
36 |
* LOG SIMTSY Network
|
|
37 |
* LOG SIMTSY PhBk
|
|
38 |
* LOG SIMTSY Misc
|
|
39 |
* LOG SIMTSY Sms
|
|
40 |
* LOG SIMTSY Packet
|
|
41 |
* LOG SIMTSY Ss
|
|
42 |
*
|
|
43 |
* Each line relates to a particular part of the SIMTSY, enabling you to
|
|
44 |
* log only the parts of interest.
|
|
45 |
*
|
|
46 |
* By default logging is only present on UDEB builds. To enable UREL logging
|
|
47 |
* on a device, you will need to rebuild your ROM with UDEB SIMTSY components.
|
|
48 |
*
|
|
49 |
* To enable logging on a device, place the "comsdbg.ini" file in the ROM
|
|
50 |
* under the "Z:\Logs\" directory. The log file will be written in the
|
|
51 |
* "C:\Logs\" directory on the device.
|
|
52 |
*
|
|
53 |
* To enable logging to the serial port change the "MEDIA FILE" line to
|
|
54 |
* "MEDIA SERIAL::1" or "MEDIA SERIAL::2". Note that this may no longer
|
|
55 |
* work due to a defect in the Comms Debug Framework.
|
|
56 |
*
|
|
57 |
* If you wish to have individual logs for each component, then use the
|
|
58 |
* extractlog.pl utility found in the %EPOCROOT%\Epoc32\Tools\ directory. E.g.
|
|
59 |
*
|
|
60 |
* extractlog.pl \EPOC32\WINSCW\C\LOGS\LOG.TXT
|
|
61 |
*
|
|
62 |
* @internalComponent
|
|
63 |
*/
|
|
64 |
|
|
65 |
#include <comms-infras/commsdebugutility.h>
|
|
66 |
#include <etelmm.h>
|
|
67 |
#include "SimTsy.h"
|
|
68 |
|
|
69 |
#ifdef _DEBUG
|
|
70 |
#define _SIMTSY_LOGGING_ENABLED
|
|
71 |
#endif
|
|
72 |
|
|
73 |
|
|
74 |
#ifdef _SIMTSY_LOGGING_ENABLED
|
|
75 |
|
|
76 |
#define SIMTSYFLOG1(N,A) { \
|
|
77 |
_LIT8(KLogString, A); \
|
|
78 |
__FLOG_STATIC0(KSIMTSYSubSystem,(N),KLogString); \
|
|
79 |
}
|
|
80 |
#define SIMTSYFLOG2(N,A,B) { \
|
|
81 |
_LIT8(KLogString, A); \
|
|
82 |
__FLOG_STATIC1(KSIMTSYSubSystem,(N),KLogString,(B)); \
|
|
83 |
}
|
|
84 |
#define SIMTSYFLOG3(N,A,B,C) { \
|
|
85 |
_LIT8(KLogString, A); \
|
|
86 |
__FLOG_STATIC2(KSIMTSYSubSystem,(N),KLogString,(B),(C)); \
|
|
87 |
}
|
|
88 |
#define SIMTSYFLOG4(N,A,B,C,D) { \
|
|
89 |
_LIT8(KLogString, A); \
|
|
90 |
__FLOG_STATIC3(KSIMTSYSubSystem,(N),KLogString,(B),(C),(D)); \
|
|
91 |
}
|
|
92 |
#define SIMTSYFLOG5(N,A,B,C,D,E) { \
|
|
93 |
_LIT8(KLogString, A); \
|
|
94 |
__FLOG_STATIC4(KSIMTSYSubSystem,(N),KLogString,(B),(C),(D),(E)); \
|
|
95 |
}
|
|
96 |
#define SIMTSYFLOG6(N,A,B,C,D,E,F) { \
|
|
97 |
_LIT8(KLogString, A); \
|
|
98 |
__FLOG_STATIC5(KSIMTSYSubSystem,(N),KLogString,(B),(C),(D),(E),(F)); \
|
|
99 |
}
|
|
100 |
#define SIMTSYFLOG7(N,A,B,C,D,E,F,G) { \
|
|
101 |
_LIT8(KLogString, A); \
|
|
102 |
__FLOG_STATIC6(KSIMTSYSubSystem,(N),KLogString,(B),(C),(D),(E),(F),(G)); \
|
|
103 |
}
|
|
104 |
#define SIMTSYFLOG8(N,A,B,C,D,E,F,G,H) { \
|
|
105 |
_LIT8(KLogString, A); \
|
|
106 |
__FLOG_STATIC7(KSIMTSYSubSystem,(N),KLogString,(B),(C),(D),(E),(F),(G),(H)); \
|
|
107 |
}
|
|
108 |
|
|
109 |
_LIT8(KSIMTSYCommon, "Common");
|
|
110 |
_LIT8(KSIMTSYConfig, "Config");
|
|
111 |
_LIT8(KSIMTSYPhone, "Phone");
|
|
112 |
_LIT8(KSIMTSYLine, "Line");
|
|
113 |
_LIT8(KSIMTSYCall, "Call");
|
|
114 |
_LIT8(KSIMTSYVoice, "Voice");
|
|
115 |
_LIT8(KSIMTSYData, "Data");
|
|
116 |
_LIT8(KSIMTSYNetwork, "Network");
|
|
117 |
_LIT8(KSIMTSYPhBk, "PhBk");
|
|
118 |
_LIT8(KSIMTSYMisc, "Misc");
|
|
119 |
_LIT8(KSIMTSYSms, "Sms");
|
|
120 |
_LIT8(KSIMTSYPacket, "Packet");
|
|
121 |
_LIT8(KSIMTSYSs, "Ss");
|
|
122 |
|
|
123 |
|
|
124 |
#define LOGSCOMMON1(A) SIMTSYFLOG1(KSIMTSYCommon,A)
|
|
125 |
#define LOGSCOMMON2(A,B) SIMTSYFLOG2(KSIMTSYCommon,A,(B))
|
|
126 |
#define LOGSCOMMON3(A,B,C) SIMTSYFLOG3(KSIMTSYCommon,A,(B),(C))
|
|
127 |
#define LOGSCOMMON4(A,B,C,D) SIMTSYFLOG4(KSIMTSYCommon,A,(B),(C),(D))
|
|
128 |
#define LOGSCOMMON5(A,B,C,D,E) SIMTSYFLOG5(KSIMTSYCommon,A,(B),(C),(D),(E))
|
|
129 |
#define LOGSCOMMON6(A,B,C,D,E,F) SIMTSYFLOG6(KSIMTSYCommon,A,(B),(C),(D),(E),(F))
|
|
130 |
#define LOGSCOMMON7(A,B,C,D,E,F,G) SIMTSYFLOG7(KSIMTSYCommon,A,(B),(C),(D),(E),(F),(G))
|
|
131 |
#define LOGSCOMMON8(A,B,C,D,E,F,G,H) SIMTSYFLOG8(KSIMTSYCommon,A,(B),(C),(D),(E),(F),(G),(H))
|
|
132 |
#define LOGSCOMMONTIMESTAMP() { \
|
|
133 |
TTime now; \
|
|
134 |
now.UniversalTime(); \
|
|
135 |
TDateTime dateTime(now.DateTime()); \
|
|
136 |
LOGSCOMMON5("TimeStamp=%02d:%02d:%02d.%06d", \
|
|
137 |
dateTime.Hour(), dateTime.Minute(), dateTime.Second(), dateTime.MicroSecond()); \
|
|
138 |
}
|
|
139 |
|
|
140 |
#define LOGCONFIG1(A) SIMTSYFLOG1(KSIMTSYConfig,A)
|
|
141 |
#define LOGCONFIG2(A,B) SIMTSYFLOG2(KSIMTSYConfig,A,(B))
|
|
142 |
#define LOGCONFIG3(A,B,C) SIMTSYFLOG3(KSIMTSYConfig,A,(B),(C))
|
|
143 |
#define LOGCONFIG4(A,B,C,D) SIMTSYFLOG4(KSIMTSYConfig,A,(B),(C),(D))
|
|
144 |
#define LOGCONFIG5(A,B,C,D,E) SIMTSYFLOG5(KSIMTSYConfig,A,(B),(C),(D),(E))
|
|
145 |
#define LOGCONFIG6(A,B,C,D,E,F) SIMTSYFLOG6(KSIMTSYConfig,A,(B),(C),(D),(E),(F))
|
|
146 |
#define LOGCONFIG7(A,B,C,D,E,F,G) SIMTSYFLOG7(KSIMTSYConfig,A,(B),(C),(D),(E),(F),(G))
|
|
147 |
#define LOGCONFIG8(A,B,C,D,E,F,G,H) SIMTSYFLOG8(KSIMTSYConfig,A,(B),(C),(D),(E),(F),(G),(H))
|
|
148 |
#define LOGCONFIGTIMESTAMP() { \
|
|
149 |
TTime now; \
|
|
150 |
now.UniversalTime(); \
|
|
151 |
TDateTime dateTime(now.DateTime()); \
|
|
152 |
LOGCONFIG5("TimeStamp=%02d:%02d:%02d.%06d", \
|
|
153 |
dateTime.Hour(), dateTime.Minute(), dateTime.Second(), dateTime.MicroSecond()); \
|
|
154 |
}
|
|
155 |
#define LOGPARSERR(A,B,C,D) LOGCONFIG7("WARNING - CONFIGURATION FILE PARSING - %s at line: %d. Reading element no. %d (%s) from tag %S returned %d.",__FILE__,__LINE__,C,A,D,B)
|
|
156 |
#define LOGPARSERREXP(A,B,C,D,E) LOGCONFIG8("WARNING - CONFIGURATION FILE PARSING - %s at line: %d. Reading element no. %d (%s) from tag %S returned %d, expected %d.",__FILE__,__LINE__,C,A,D,B,E)
|
|
157 |
#define LOGPARSERRANGE(A,B,C,D,E) LOGCONFIG8("WARNING - CONFIGURATION FILE PARSING - %s at line: %d. Reading element no. %d (%s) from tag %S returned %d, expected %s.",__FILE__,__LINE__,C,A,D,B,E)
|
|
158 |
|
|
159 |
#define LOGPHONE1(A) SIMTSYFLOG1(KSIMTSYPhone,A)
|
|
160 |
#define LOGPHONE2(A,B) SIMTSYFLOG2(KSIMTSYPhone,A,(B))
|
|
161 |
#define LOGPHONE3(A,B,C) SIMTSYFLOG3(KSIMTSYPhone,A,(B),(C))
|
|
162 |
#define LOGPHONE4(A,B,C,D) SIMTSYFLOG4(KSIMTSYPhone,A,(B),(C),(D))
|
|
163 |
#define LOGPHONE5(A,B,C,D,E) SIMTSYFLOG5(KSIMTSYPhone,A,(B),(C),(D),(E))
|
|
164 |
#define LOGPHONE6(A,B,C,D,E,F) SIMTSYFLOG6(KSIMTSYPhone,A,(B),(C),(D),(E),(F))
|
|
165 |
#define LOGPHONE7(A,B,C,D,E,F,G) SIMTSYFLOG7(KSIMTSYPhone,A,(B),(C),(D),(E),(F),(G))
|
|
166 |
#define LOGPHONE8(A,B,C,D,E,F,G,H) SIMTSYFLOG8(KSIMTSYPhone,A,(B),(C),(D),(E),(F),(G),(H))
|
|
167 |
#define LOGPHONETIMESTAMP() { \
|
|
168 |
TTime now; \
|
|
169 |
now.UniversalTime(); \
|
|
170 |
TDateTime dateTime(now.DateTime()); \
|
|
171 |
LOGPHONE5("TimeStamp=%02d:%02d:%02d.%06d", \
|
|
172 |
dateTime.Hour(), dateTime.Minute(), dateTime.Second(), dateTime.MicroSecond()); \
|
|
173 |
}
|
|
174 |
|
|
175 |
|
|
176 |
#define LOGLINE1(A) SIMTSYFLOG1(KSIMTSYLine,A)
|
|
177 |
#define LOGLINE2(A,B) SIMTSYFLOG2(KSIMTSYLine,A,(B))
|
|
178 |
#define LOGLINE3(A,B,C) SIMTSYFLOG3(KSIMTSYLine,A,(B),(C))
|
|
179 |
#define LOGLINE4(A,B,C,D) SIMTSYFLOG4(KSIMTSYLine,A,(B),(C),(D))
|
|
180 |
#define LOGLINE5(A,B,C,D,E) SIMTSYFLOG5(KSIMTSYLine,A,(B),(C),(D),(E))
|
|
181 |
#define LOGLINE6(A,B,C,D,E,F) SIMTSYFLOG6(KSIMTSYLine,A,(B),(C),(D),(E),(F))
|
|
182 |
#define LOGLINE7(A,B,C,D,E,F,G) SIMTSYFLOG7(KSIMTSYLine,A,(B),(C),(D),(E),(F),(G))
|
|
183 |
#define LOGLINE8(A,B,C,D,E,F,G,H) SIMTSYFLOG8(KSIMTSYLine,A,(B),(C),(D),(E),(F),(G),(H))
|
|
184 |
#define LOGLINETIMESTAMP() { \
|
|
185 |
TTime now; \
|
|
186 |
now.UniversalTime(); \
|
|
187 |
TDateTime dateTime(now.DateTime()); \
|
|
188 |
LOGLINE5("TimeStamp=%02d:%02d:%02d.%06d", \
|
|
189 |
dateTime.Hour(), dateTime.Minute(), dateTime.Second(), dateTime.MicroSecond()); \
|
|
190 |
}
|
|
191 |
|
|
192 |
#define LOGCALL1(A) SIMTSYFLOG1(KSIMTSYCall,A)
|
|
193 |
#define LOGCALL2(A,B) SIMTSYFLOG2(KSIMTSYCall,A,(B))
|
|
194 |
#define LOGCALL3(A,B,C) SIMTSYFLOG3(KSIMTSYCall,A,(B),(C))
|
|
195 |
#define LOGCALL4(A,B,C,D) SIMTSYFLOG4(KSIMTSYCall,A,(B),(C),(D))
|
|
196 |
#define LOGCALL5(A,B,C,D,E) SIMTSYFLOG5(KSIMTSYCall,A,(B),(C),(D),(E))
|
|
197 |
#define LOGCALL6(A,B,C,D,E,F) SIMTSYFLOG6(KSIMTSYCall,A,(B),(C),(D),(E),(F))
|
|
198 |
#define LOGCALL7(A,B,C,D,E,F,G) SIMTSYFLOG7(KSIMTSYCall,A,(B),(C),(D),(E),(F),(G))
|
|
199 |
#define LOGCALL8(A,B,C,D,E,F,G,H) SIMTSYFLOG8(KSIMTSYCall,A,(B),(C),(D),(E),(F),(G),(H))
|
|
200 |
#define LOGCALLTIMESTAMP() { \
|
|
201 |
TTime now; \
|
|
202 |
now.UniversalTime(); \
|
|
203 |
TDateTime dateTime(now.DateTime()); \
|
|
204 |
LOGCALL5("TimeStamp=%02d:%02d:%02d.%06d", \
|
|
205 |
dateTime.Hour(), dateTime.Minute(), dateTime.Second(), dateTime.MicroSecond()); \
|
|
206 |
}
|
|
207 |
|
|
208 |
#define LOGVOICE1(A) SIMTSYFLOG1(KSIMTSYVoice,A)
|
|
209 |
#define LOGVOICE2(A,B) SIMTSYFLOG2(KSIMTSYVoice,A,(B))
|
|
210 |
#define LOGVOICE3(A,B,C) SIMTSYFLOG3(KSIMTSYVoice,A,(B),(C))
|
|
211 |
#define LOGVOICE4(A,B,C,D) SIMTSYFLOG4(KSIMTSYVoice,A,(B),(C),(D))
|
|
212 |
#define LOGVOICE5(A,B,C,D,E) SIMTSYFLOG5(KSIMTSYVoice,A,(B),(C),(D),(E))
|
|
213 |
#define LOGVOICE6(A,B,C,D,E,F) SIMTSYFLOG6(KSIMTSYVoice,A,(B),(C),(D),(E),(F))
|
|
214 |
#define LOGVOICE7(A,B,C,D,E,F,G) SIMTSYFLOG7(KSIMTSYVoice,A,(B),(C),(D),(E),(F),(G))
|
|
215 |
#define LOGVOICE8(A,B,C,D,E,F,G,H) SIMTSYFLOG8(KSIMTSYVoice,A,(B),(C),(D),(E),(F),(G),(H))
|
|
216 |
#define LOGVOICETIMESTAMP() { \
|
|
217 |
TTime now; \
|
|
218 |
now.UniversalTime(); \
|
|
219 |
TDateTime dateTime(now.DateTime()); \
|
|
220 |
LOGVOICE5("TimeStamp=%02d:%02d:%02d.%06d", \
|
|
221 |
dateTime.Hour(), dateTime.Minute(), dateTime.Second(), dateTime.MicroSecond()); \
|
|
222 |
}
|
|
223 |
|
|
224 |
#define LOGDATA1(A) SIMTSYFLOG1(KSIMTSYData,A)
|
|
225 |
#define LOGDATA2(A,B) SIMTSYFLOG2(KSIMTSYData,A,(B))
|
|
226 |
#define LOGDATA3(A,B,C) SIMTSYFLOG3(KSIMTSYData,A,(B),(C))
|
|
227 |
#define LOGDATA4(A,B,C,D) SIMTSYFLOG4(KSIMTSYData,A,(B),(C),(D))
|
|
228 |
#define LOGDATA5(A,B,C,D,E) SIMTSYFLOG5(KSIMTSYData,A,(B),(C),(D),(E))
|
|
229 |
#define LOGDATA6(A,B,C,D,E,F) SIMTSYFLOG6(KSIMTSYData,A,(B),(C),(D),(E),(F))
|
|
230 |
#define LOGDATA7(A,B,C,D,E,F,G) SIMTSYFLOG7(KSIMTSYData,A,(B),(C),(D),(E),(F),(G))
|
|
231 |
#define LOGDATA8(A,B,C,D,E,F,G,H) SIMTSYFLOG8(KSIMTSYData,A,(B),(C),(D),(E),(F),(G),(H))
|
|
232 |
#define LOGDATATIMESTAMP() { \
|
|
233 |
TTime now; \
|
|
234 |
now.UniversalTime(); \
|
|
235 |
TDateTime dateTime(now.DateTime()); \
|
|
236 |
LOGDATA5("TimeStamp=%02d:%02d:%02d.%06d", \
|
|
237 |
dateTime.Hour(), dateTime.Minute(), dateTime.Second(), dateTime.MicroSecond()); \
|
|
238 |
}
|
|
239 |
|
|
240 |
#define LOGNETWORK1(A) SIMTSYFLOG1(KSIMTSYNetwork,A)
|
|
241 |
#define LOGNETWORK2(A,B) SIMTSYFLOG2(KSIMTSYNetwork,A,(B))
|
|
242 |
#define LOGNETWORK3(A,B,C) SIMTSYFLOG3(KSIMTSYNetwork,A,(B),(C))
|
|
243 |
#define LOGNETWORK4(A,B,C,D) SIMTSYFLOG4(KSIMTSYNetwork,A,(B),(C),(D))
|
|
244 |
#define LOGNETWORK5(A,B,C,D,E) SIMTSYFLOG5(KSIMTSYNetwork,A,(B),(C),(D),(E))
|
|
245 |
#define LOGNETWORK6(A,B,C,D,E,F) SIMTSYFLOG6(KSIMTSYNetwork,A,(B),(C),(D),(E),(F))
|
|
246 |
#define LOGNETWORK7(A,B,C,D,E,F,G) SIMTSYFLOG7(KSIMTSYNetwork,A,(B),(C),(D),(E),(F),(G))
|
|
247 |
#define LOGNETWORK8(A,B,C,D,E,F,G,H) SIMTSYFLOG8(KSIMTSYNetwork,A,(B),(C),(D),(E),(F),(G),(H))
|
|
248 |
#define LOGNETWORKTIMESTAMP() { \
|
|
249 |
TTime now; \
|
|
250 |
now.UniversalTime(); \
|
|
251 |
TDateTime dateTime(now.DateTime()); \
|
|
252 |
LOGNETWORK5("TimeStamp=%02d:%02d:%02d.%06d", \
|
|
253 |
dateTime.Hour(), dateTime.Minute(), dateTime.Second(), dateTime.MicroSecond()); \
|
|
254 |
}
|
|
255 |
|
|
256 |
#define LOGPHBK1(A) SIMTSYFLOG1(KSIMTSYPhBk,A)
|
|
257 |
#define LOGPHBK2(A,B) SIMTSYFLOG2(KSIMTSYPhBk,A,(B))
|
|
258 |
#define LOGPHBK3(A,B,C) SIMTSYFLOG3(KSIMTSYPhBk,A,(B),(C))
|
|
259 |
#define LOGPHBK4(A,B,C,D) SIMTSYFLOG4(KSIMTSYPhBk,A,(B),(C),(D))
|
|
260 |
#define LOGPHBK5(A,B,C,D,E) SIMTSYFLOG5(KSIMTSYPhBk,A,(B),(C),(D),(E))
|
|
261 |
#define LOGPHBK6(A,B,C,D,E,F) SIMTSYFLOG6(KSIMTSYPhBk,A,(B),(C),(D),(E),(F))
|
|
262 |
#define LOGPHBK7(A,B,C,D,E,F,G) SIMTSYFLOG7(KSIMTSYPhBk,A,(B),(C),(D),(E),(F),(G))
|
|
263 |
#define LOGPHBK8(A,B,C,D,E,F,G,H) SIMTSYFLOG8(KSIMTSYPhBk,A,(B),(C),(D),(E),(F),(G),(H))
|
|
264 |
#define LOGPHBKTIMESTAMP() { \
|
|
265 |
TTime now; \
|
|
266 |
now.UniversalTime(); \
|
|
267 |
TDateTime dateTime(now.DateTime()); \
|
|
268 |
LOGPHBK5("TimeStamp=%02d:%02d:%02d.%06d", \
|
|
269 |
dateTime.Hour(), dateTime.Minute(), dateTime.Second(), dateTime.MicroSecond()); \
|
|
270 |
}
|
|
271 |
|
|
272 |
#define LOGMISC1(A) SIMTSYFLOG1(KSIMTSYMisc,A)
|
|
273 |
#define LOGMISC2(A,B) SIMTSYFLOG2(KSIMTSYMisc,A,(B))
|
|
274 |
#define LOGMISC3(A,B,C) SIMTSYFLOG3(KSIMTSYMisc,A,(B),(C))
|
|
275 |
#define LOGMISC4(A,B,C,D) SIMTSYFLOG4(KSIMTSYMisc,A,(B),(C),(D))
|
|
276 |
#define LOGMISC5(A,B,C,D,E) SIMTSYFLOG5(KSIMTSYMisc,A,(B),(C),(D),(E))
|
|
277 |
#define LOGMISC6(A,B,C,D,E,F) SIMTSYFLOG6(KSIMTSYMisc,A,(B),(C),(D),(E),(F))
|
|
278 |
#define LOGMISC7(A,B,C,D,E,F,G) SIMTSYFLOG7(KSIMTSYMisc,A,(B),(C),(D),(E),(F),(G))
|
|
279 |
#define LOGMISC8(A,B,C,D,E,F,G,H) SIMTSYFLOG8(KSIMTSYMisc,A,(B),(C),(D),(E),(F),(G),(H))
|
|
280 |
#define LOGMISCTIMESTAMP() { \
|
|
281 |
TTime now; \
|
|
282 |
now.UniversalTime(); \
|
|
283 |
TDateTime dateTime(now.DateTime()); \
|
|
284 |
LOGMISC5("TimeStamp=%02d:%02d:%02d.%06d", \
|
|
285 |
dateTime.Hour(), dateTime.Minute(), dateTime.Second(), dateTime.MicroSecond()); \
|
|
286 |
}
|
|
287 |
|
|
288 |
#define LOGSMS1(A) SIMTSYFLOG1(KSIMTSYSms,A)
|
|
289 |
#define LOGSMS2(A,B) SIMTSYFLOG2(KSIMTSYSms,A,(B))
|
|
290 |
#define LOGSMS3(A,B,C) SIMTSYFLOG3(KSIMTSYSms,A,(B),(C))
|
|
291 |
#define LOGSMS4(A,B,C,D) SIMTSYFLOG4(KSIMTSYSms,A,(B),(C),(D))
|
|
292 |
#define LOGSMS5(A,B,C,D,E) SIMTSYFLOG5(KSIMTSYSms,A,(B),(C),(D),(E))
|
|
293 |
#define LOGSMS6(A,B,C,D,E,F) SIMTSYFLOG6(KSIMTSYSms,A,(B),(C),(D),(E),(F))
|
|
294 |
#define LOGSMS7(A,B,C,D,E,F,G) SIMTSYFLOG7(KSIMTSYSms,A,(B),(C),(D),(E),(F),(G))
|
|
295 |
#define LOGSMS8(A,B,C,D,E,F,G,H) SIMTSYFLOG8(KSIMTSYSms,A,(B),(C),(D),(E),(F),(G),(H))
|
|
296 |
#define LOGSMSTIMESTAMP() { \
|
|
297 |
TTime now; \
|
|
298 |
now.UniversalTime(); \
|
|
299 |
TDateTime dateTime(now.DateTime()); \
|
|
300 |
LOGSMS5("TimeStamp=%02d:%02d:%02d.%06d", \
|
|
301 |
dateTime.Hour(), dateTime.Minute(), dateTime.Second(), dateTime.MicroSecond()); \
|
|
302 |
}
|
|
303 |
|
|
304 |
#define LOGPACKET1(A) SIMTSYFLOG1(KSIMTSYPacket,A)
|
|
305 |
#define LOGPACKET2(A,B) SIMTSYFLOG2(KSIMTSYPacket,A,(B))
|
|
306 |
#define LOGPACKET3(A,B,C) SIMTSYFLOG3(KSIMTSYPacket,A,(B),(C))
|
|
307 |
#define LOGPACKET4(A,B,C,D) SIMTSYFLOG4(KSIMTSYPacket,A,(B),(C),(D))
|
|
308 |
#define LOGPACKET5(A,B,C,D,E) SIMTSYFLOG5(KSIMTSYPacket,A,(B),(C),(D),(E))
|
|
309 |
#define LOGPACKET6(A,B,C,D,E,F) SIMTSYFLOG6(KSIMTSYPacket,A,(B),(C),(D),(E),(F))
|
|
310 |
#define LOGPACKET7(A,B,C,D,E,F,G) SIMTSYFLOG7(KSIMTSYPacket,A,(B),(C),(D),(E),(F),(G))
|
|
311 |
#define LOGPACKET8(A,B,C,D,E,F,G,H) SIMTSYFLOG8(KSIMTSYPacket,A,(B),(C),(D),(E),(F),(G),(H))
|
|
312 |
#define LOGPACKETTIMESTAMP() { \
|
|
313 |
TTime now; \
|
|
314 |
now.UniversalTime(); \
|
|
315 |
TDateTime dateTime(now.DateTime()); \
|
|
316 |
LOGPACKET5("TimeStamp=%02d:%02d:%02d.%06d", \
|
|
317 |
dateTime.Hour(), dateTime.Minute(), dateTime.Second(), dateTime.MicroSecond()); \
|
|
318 |
}
|
|
319 |
|
|
320 |
#define LOGSS1(A) SIMTSYFLOG1(KSIMTSYSs,A)
|
|
321 |
#define LOGSS2(A,B) SIMTSYFLOG2(KSIMTSYSs,A,(B))
|
|
322 |
#define LOGSS3(A,B,C) SIMTSYFLOG3(KSIMTSYSs,A,(B),(C))
|
|
323 |
#define LOGSS4(A,B,C,D) SIMTSYFLOG4(KSIMTSYSs,A,(B),(C),(D))
|
|
324 |
#define LOGSS5(A,B,C,D,E) SIMTSYFLOG5(KSIMTSYSs,A,(B),(C),(D),(E))
|
|
325 |
#define LOGSS6(A,B,C,D,E,F) SIMTSYFLOG6(KSIMTSYSs,A,(B),(C),(D),(E),(F))
|
|
326 |
#define LOGSS7(A,B,C,D,E,F,G) SIMTSYFLOG7(KSIMTSYSs,A,(B),(C),(D),(E),(F),(G))
|
|
327 |
#define LOGSS8(A,B,C,D,E,F,G,H) SIMTSYFLOG8(KSIMTSYSs,A,(B),(C),(D),(E),(F),(G),(H))
|
|
328 |
#define LOGSSTIMESTAMP() { \
|
|
329 |
TTime now; \
|
|
330 |
now.UniversalTime(); \
|
|
331 |
TDateTime dateTime(now.DateTime()); \
|
|
332 |
LOGSS5("TimeStamp=%02d:%02d:%02d.%06d", \
|
|
333 |
dateTime.Hour(), dateTime.Minute(), dateTime.Second(), dateTime.MicroSecond()); \
|
|
334 |
}
|
|
335 |
|
|
336 |
|
|
337 |
|
|
338 |
#else // _SIMTSY_LOGGING_ENABLED
|
|
339 |
|
|
340 |
#define LOGSCOMMON1(A)
|
|
341 |
#define LOGSCOMMON2(A,B)
|
|
342 |
#define LOGSCOMMON3(A,B,C)
|
|
343 |
#define LOGSCOMMON4(A,B,C,D)
|
|
344 |
#define LOGSCOMMON5(A,B,C,D,E)
|
|
345 |
#define LOGSCOMMON6(A,B,C,D,E,F)
|
|
346 |
#define LOGSCOMMON7(A,B,C,D,E,F,G)
|
|
347 |
#define LOGSCOMMON8(A,B,C,D,E,F,G,H)
|
|
348 |
#define LOGSCOMMONTIMESTAMP()
|
|
349 |
|
|
350 |
#define LOGCONFIG1(A)
|
|
351 |
#define LOGCONFIG2(A,B)
|
|
352 |
#define LOGCONFIG3(A,B,C)
|
|
353 |
#define LOGCONFIG4(A,B,C,D)
|
|
354 |
#define LOGCONFIG5(A,B,C,D,E)
|
|
355 |
#define LOGCONFIG6(A,B,C,D,E,F)
|
|
356 |
#define LOGCONFIG7(A,B,C,D,E,F,G)
|
|
357 |
#define LOGCONFIG8(A,B,C,D,E,F,G,H)
|
|
358 |
#define LOGCONFIGTIMESTAMP()
|
|
359 |
|
|
360 |
#define LOGPARSERR(A,B,C,D)
|
|
361 |
#define LOGPARSERREXP(A,B,C,D,E)
|
|
362 |
#define LOGPARSERRANGE(A,B,C,D,E)
|
|
363 |
|
|
364 |
#define LOGPHONE1(A)
|
|
365 |
#define LOGPHONE2(A,B)
|
|
366 |
#define LOGPHONE3(A,B,C)
|
|
367 |
#define LOGPHONE4(A,B,C,D)
|
|
368 |
#define LOGPHONE5(A,B,C,D,E)
|
|
369 |
#define LOGPHONE6(A,B,C,D,E,F)
|
|
370 |
#define LOGPHONE7(A,B,C,D,E,F,G)
|
|
371 |
#define LOGPHONE8(A,B,C,D,E,F,G,H)
|
|
372 |
#define LOGPHONETIMESTAMP()
|
|
373 |
|
|
374 |
#define LOGLINE1(A)
|
|
375 |
#define LOGLINE2(A,B)
|
|
376 |
#define LOGLINE3(A,B,C)
|
|
377 |
#define LOGLINE4(A,B,C,D)
|
|
378 |
#define LOGLINE5(A,B,C,D,E)
|
|
379 |
#define LOGLINE6(A,B,C,D,E,F)
|
|
380 |
#define LOGLINE7(A,B,C,D,E,F,G)
|
|
381 |
#define LOGLINE8(A,B,C,D,E,F,G,H)
|
|
382 |
#define LOGLINETIMESTAMP()
|
|
383 |
|
|
384 |
#define LOGCALL1(A)
|
|
385 |
#define LOGCALL2(A,B)
|
|
386 |
#define LOGCALL3(A,B,C)
|
|
387 |
#define LOGCALL4(A,B,C,D)
|
|
388 |
#define LOGCALL5(A,B,C,D,E)
|
|
389 |
#define LOGCALL6(A,B,C,D,E,F)
|
|
390 |
#define LOGCALL7(A,B,C,D,E,F,G)
|
|
391 |
#define LOGCALL8(A,B,C,D,E,F,G,H)
|
|
392 |
#define LOGCALLTIMESTAMP()
|
|
393 |
|
|
394 |
#define LOGVOICE1(A)
|
|
395 |
#define LOGVOICE2(A,B)
|
|
396 |
#define LOGVOICE3(A,B,C)
|
|
397 |
#define LOGVOICE4(A,B,C,D)
|
|
398 |
#define LOGVOICE5(A,B,C,D,E)
|
|
399 |
#define LOGVOICE6(A,B,C,D,E,F)
|
|
400 |
#define LOGVOICE7(A,B,C,D,E,F,G)
|
|
401 |
#define LOGVOICE8(A,B,C,D,E,F,G,H)
|
|
402 |
#define LOGVOICETIMESTAMP()
|
|
403 |
|
|
404 |
#define LOGDATA1(A)
|
|
405 |
#define LOGDATA2(A,B)
|
|
406 |
#define LOGDATA3(A,B,C)
|
|
407 |
#define LOGDATA4(A,B,C,D)
|
|
408 |
#define LOGDATA5(A,B,C,D,E)
|
|
409 |
#define LOGDATA6(A,B,C,D,E,F)
|
|
410 |
#define LOGDATA7(A,B,C,D,E,F,G)
|
|
411 |
#define LOGDATA8(A,B,C,D,E,F,G,H)
|
|
412 |
#define LOGDATATIMESTAMP()
|
|
413 |
|
|
414 |
#define LOGNETWORK1(A)
|
|
415 |
#define LOGNETWORK2(A,B)
|
|
416 |
#define LOGNETWORK3(A,B,C)
|
|
417 |
#define LOGNETWORK4(A,B,C,D)
|
|
418 |
#define LOGNETWORK5(A,B,C,D,E)
|
|
419 |
#define LOGNETWORK6(A,B,C,D,E,F)
|
|
420 |
#define LOGNETWORK7(A,B,C,D,E,F,G)
|
|
421 |
#define LOGNETWORK8(A,B,C,D,E,F,G,H)
|
|
422 |
#define LOGNETWORKTIMESTAMP()
|
|
423 |
|
|
424 |
#define LOGPHBK1(A)
|
|
425 |
#define LOGPHBK2(A,B)
|
|
426 |
#define LOGPHBK3(A,B,C)
|
|
427 |
#define LOGPHBK4(A,B,C,D)
|
|
428 |
#define LOGPHBK5(A,B,C,D,E)
|
|
429 |
#define LOGPHBK6(A,B,C,D,E,F)
|
|
430 |
#define LOGPHBK7(A,B,C,D,E,F,G)
|
|
431 |
#define LOGPHBK8(A,B,C,D,E,F,G,H)
|
|
432 |
#define LOGPHBKTIMESTAMP()
|
|
433 |
|
|
434 |
#define LOGMISC1(A)
|
|
435 |
#define LOGMISC2(A,B)
|
|
436 |
#define LOGMISC3(A,B,C)
|
|
437 |
#define LOGMISC4(A,B,C,D)
|
|
438 |
#define LOGMISC5(A,B,C,D,E)
|
|
439 |
#define LOGMISC6(A,B,C,D,E,F)
|
|
440 |
#define LOGMISC7(A,B,C,D,E,F,G)
|
|
441 |
#define LOGMISC8(A,B,C,D,E,F,G,H)
|
|
442 |
#define LOGMISCTIMESTAMP()
|
|
443 |
|
|
444 |
#define LOGSMS1(A)
|
|
445 |
#define LOGSMS2(A,B)
|
|
446 |
#define LOGSMS3(A,B,C)
|
|
447 |
#define LOGSMS4(A,B,C,D)
|
|
448 |
#define LOGSMS5(A,B,C,D,E)
|
|
449 |
#define LOGSMS6(A,B,C,D,E,F)
|
|
450 |
#define LOGSMS7(A,B,C,D,E,F,G)
|
|
451 |
#define LOGSMS8(A,B,C,D,E,F,G,H)
|
|
452 |
#define LOGSMSTIMESTAMP()
|
|
453 |
|
|
454 |
#define LOGPACKET1(A)
|
|
455 |
#define LOGPACKET2(A,B)
|
|
456 |
#define LOGPACKET3(A,B,C)
|
|
457 |
#define LOGPACKET4(A,B,C,D)
|
|
458 |
#define LOGPACKET5(A,B,C,D,E)
|
|
459 |
#define LOGPACKET6(A,B,C,D,E,F)
|
|
460 |
#define LOGPACKET7(A,B,C,D,E,F,G)
|
|
461 |
#define LOGPACKET8(A,B,C,D,E,F,G,H)
|
|
462 |
#define LOGPACKETTIMESTAMP()
|
|
463 |
|
|
464 |
#define LOGSS1(A)
|
|
465 |
#define LOGSS2(A,B)
|
|
466 |
#define LOGSS3(A,B,C)
|
|
467 |
#define LOGSS4(A,B,C,D)
|
|
468 |
#define LOGSS5(A,B,C,D,E)
|
|
469 |
#define LOGSS6(A,B,C,D,E,F)
|
|
470 |
#define LOGSS7(A,B,C,D,E,F,G)
|
|
471 |
#define LOGSS8(A,B,C,D,E,F,G,H)
|
|
472 |
#define LOGSSTIMESTAMP()
|
|
473 |
|
|
474 |
|
|
475 |
|
|
476 |
#endif // _SIMTSY_LOGGING_ENABLED
|
|
477 |
|
|
478 |
#endif // _SIMTSYLOG_H_
|
|
479 |
|
|
480 |
|