aboutsummaryrefslogtreecommitdiff
path: root/doc/oscl_html/pvlogger_8h_source.html
blob: 1187445a2e222b9ee799c3e79fed0502c8263e63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>oscl: pvlogger.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<h1>pvlogger.h</h1><a href="pvlogger_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00009"></a>00009 <span class="preprocessor">#ifndef PVLOGGER_H_INCLUDED</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_H_INCLUDED</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span>
<a name="l00012"></a>00012 <span class="preprocessor">#ifndef OSCL_BASE_H_INCLUDED</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="oscl__base_8h.html" title="The file oscl_base.h is the public header that should be included to pick up the...">oscl_base.h</a>&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#endif</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a>00016 <span class="preprocessor">#ifndef OSCL_VECTOR_H_INCLUDED</span>
<a name="l00017"></a>00017 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="oscl__vector_8h.html" title="The file oscl_vector.h defines the template class Oscl_Vector which has a very similar...">oscl_vector.h</a>&quot;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#endif</span>
<a name="l00019"></a>00019 <span class="preprocessor"></span>
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef OSCL_DEFALLOC_H_INCLUDED</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="oscl__defalloc_8h.html" title="The file defines simple default memory allocator classes. These allocators are used...">oscl_defalloc.h</a>&quot;</span>
<a name="l00022"></a>00022 <span class="preprocessor">#endif</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#ifndef OSCL_SHARED_PTR_H</span>
<a name="l00025"></a>00025 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="oscl__shared__ptr_8h.html" title="This file defines a template class OsclSharedPtr which is a &amp;quot;smart pointer&amp;quot;...">oscl_shared_ptr.h</a>&quot;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#endif</span>
<a name="l00027"></a>00027 <span class="preprocessor"></span>
<a name="l00028"></a>00028 <span class="preprocessor">#ifndef OSCL_BASE_ALLOC_H_INCLUDED</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#include &quot;<a class="code" href="oscl__base__alloc_8h.html" title="A basic allocator that does not rely on other modules.">oscl_base_alloc.h</a>&quot;</span>
<a name="l00030"></a>00030 <span class="preprocessor">#endif</span>
<a name="l00031"></a>00031 <span class="preprocessor"></span>
<a name="l00032"></a>00032 
<a name="l00033"></a><a class="code" href="pvlogger_8h.html#a4e469e549b99af4d5449bf2865b99115">00033</a> <span class="keyword">const</span> int32 <a class="code" href="pvlogger_8h.html#a4e469e549b99af4d5449bf2865b99115">PVLOGGER_LEVEL_UNINTIALIZED</a> = -1;
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 
<a name="l00038"></a>00038 <span class="comment">// The instrumentation layer allows groups</span>
<a name="l00039"></a>00039 <span class="comment">// of messages to be compiled in or out of</span>
<a name="l00040"></a>00040 <span class="comment">// the code based on a build-time parameter.</span>
<a name="l00042"></a>00042 <span class="comment"></span>
<a name="l00055"></a><a class="code" href="pvlogger_8h.html#aa6b27271f37475fb2cddbf7f8034dba3">00055</a> <span class="preprocessor">#define PVLOGMSG_INST_REL   0</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span>
<a name="l00063"></a><a class="code" href="pvlogger_8h.html#a1bb843a9ff3337f215448ad81d04cf30">00063</a> <span class="preprocessor">#define PVLOGMSG_INST_PROF  1</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span>
<a name="l00074"></a><a class="code" href="pvlogger_8h.html#aaec0bb4414cb9ecfaf9f13c5ebbe9f99">00074</a> <span class="preprocessor">#define PVLOGMSG_INST_HLDBG 2</span>
<a name="l00075"></a>00075 <span class="preprocessor"></span>
<a name="l00085"></a><a class="code" href="pvlogger_8h.html#a9cf17c6479bd08da94a7cce02a9f8d70">00085</a> <span class="preprocessor">#define PVLOGMSG_INST_MLDBG 3</span>
<a name="l00086"></a>00086 <span class="preprocessor"></span>
<a name="l00096"></a><a class="code" href="pvlogger_8h.html#a6dd772e91076c0aff1db2297073e1aa0">00096</a> <span class="preprocessor">#define PVLOGMSG_INST_LLDBG 4</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span>
<a name="l00098"></a>00098 <span class="comment">/*</span>
<a name="l00099"></a>00099 <span class="comment">** Default logger instrumentation level.  To override this</span>
<a name="l00100"></a>00100 <span class="comment">** setting, define PVLOGGER_INST_LEVEL in the osclconfig.h file.</span>
<a name="l00101"></a>00101 <span class="comment">** Possible values and the resulting intrumentation:</span>
<a name="l00102"></a>00102 <span class="comment">**</span>
<a name="l00103"></a>00103 <span class="comment">**  PVLOGGER_INST_LEVEL 0 : No logging.  All logging statements compiled out.</span>
<a name="l00104"></a>00104 <span class="comment">**  PVLOGGER_INST_LEVEL 1 : Release level only.</span>
<a name="l00105"></a>00105 <span class="comment">**  PVLOGGER_INST_LEVEL 2 : Release level + profile level</span>
<a name="l00106"></a>00106 <span class="comment">**  PVLOGGER_INST_LEVEL 3 : Release level + profile level + high-level debug</span>
<a name="l00107"></a>00107 <span class="comment">**  PVLOGGER_INST_LEVEL 4 : Release level + profile level + high-level debug + mid-level debug</span>
<a name="l00108"></a>00108 <span class="comment">**  PVLOGGER_INST_LEVEL 5 &amp; above : Release level + profile level + high-level debug</span>
<a name="l00109"></a>00109 <span class="comment">**                            + mid-level debug + low-level debug</span>
<a name="l00110"></a>00110 <span class="comment">*/</span>
<a name="l00111"></a>00111 <span class="preprocessor">#ifndef PVLOGGER_INST_LEVEL</span>
<a name="l00112"></a>00112 <span class="preprocessor"></span><span class="preprocessor">#if (OSCL_RELEASE_BUILD)</span>
<a name="l00113"></a>00113 <span class="preprocessor"></span><span class="comment">/* Release mode-- Profile logging */</span>
<a name="l00114"></a>00114 <span class="preprocessor">#define PVLOGGER_INST_LEVEL 1</span>
<a name="l00115"></a>00115 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00116"></a>00116 <span class="preprocessor"></span><span class="comment">/* Debug mode-- Complete logging */</span>
<a name="l00117"></a><a class="code" href="pvlogger_8h.html#ae7801cff82fe272b2771eedccfa8dfca">00117</a> <span class="preprocessor">#define PVLOGGER_INST_LEVEL 5</span>
<a name="l00118"></a>00118 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00119"></a>00119 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00120"></a>00120 <span class="preprocessor"></span>
<a name="l00121"></a>00121 
<a name="l00122"></a>00122 <span class="preprocessor">#if (PVLOGGER_INST_LEVEL&lt;1)</span>
<a name="l00123"></a>00123 <span class="preprocessor"></span>
<a name="l00124"></a>00124 <span class="comment">/*</span>
<a name="l00125"></a>00125 <span class="comment">** Disable and compile-out all logging</span>
<a name="l00126"></a>00126 <span class="comment">*/</span>
<a name="l00127"></a>00127 <span class="preprocessor">#define PVLOGGER_LOGMSG(IL, LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00128"></a>00128 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_V(IL, LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00129"></a>00129 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN(IL, LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00130"></a>00130 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_V(IL, LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00131"></a>00131 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOG_USE_ONLY(x)</span>
<a name="l00132"></a>00132 <span class="preprocessor"></span>
<a name="l00133"></a>00133 <span class="preprocessor">#else //PVLOGGER_INST_LEVEL</span>
<a name="l00134"></a>00134 <span class="preprocessor"></span>
<a name="l00135"></a>00135 <span class="comment">/*</span>
<a name="l00136"></a>00136 <span class="comment">** Internal use macros that make the logging calls to PVLogger.</span>
<a name="l00137"></a>00137 <span class="comment">*/</span>
<a name="l00138"></a><a class="code" href="pvlogger_8h.html#a34c16d7d234eddbaca84e48c7520f3bf">00138</a> <span class="preprocessor">#define _PVLOGGER_LOGMSG(LOGGER, LEVEL, MESSAGE)\</span>
<a name="l00139"></a>00139 <span class="preprocessor">{\</span>
<a name="l00140"></a>00140 <span class="preprocessor">    if (LOGGER)\</span>
<a name="l00141"></a>00141 <span class="preprocessor">    {\</span>
<a name="l00142"></a>00142 <span class="preprocessor">        if (LOGGER-&gt;IsActive(LEVEL))\</span>
<a name="l00143"></a>00143 <span class="preprocessor">        {\</span>
<a name="l00144"></a>00144 <span class="preprocessor">            LOGGER-&gt;LogMsgString MESSAGE;\</span>
<a name="l00145"></a>00145 <span class="preprocessor">        }\</span>
<a name="l00146"></a>00146 <span class="preprocessor">    }\</span>
<a name="l00147"></a>00147 <span class="preprocessor">}</span>
<a name="l00148"></a>00148 <span class="preprocessor"></span>
<a name="l00149"></a><a class="code" href="pvlogger_8h.html#afdf13853a6a4aec5714666eb918176d8">00149</a> <span class="preprocessor">#define _PVLOGGER_LOGMSG_V(LOGGER, LEVEL, MESSAGE)\</span>
<a name="l00150"></a>00150 <span class="preprocessor">{\</span>
<a name="l00151"></a>00151 <span class="preprocessor">    if (LOGGER)\</span>
<a name="l00152"></a>00152 <span class="preprocessor">    {\</span>
<a name="l00153"></a>00153 <span class="preprocessor">        if (LOGGER-&gt;IsActive(LEVEL))\</span>
<a name="l00154"></a>00154 <span class="preprocessor">        {\</span>
<a name="l00155"></a>00155 <span class="preprocessor">            LOGGER-&gt;LogMsgStringV MESSAGE;\</span>
<a name="l00156"></a>00156 <span class="preprocessor">        }\</span>
<a name="l00157"></a>00157 <span class="preprocessor">    }\</span>
<a name="l00158"></a>00158 <span class="preprocessor">}</span>
<a name="l00159"></a>00159 <span class="preprocessor"></span>
<a name="l00160"></a><a class="code" href="pvlogger_8h.html#a9c7aa4d1b8b7663a09514e057a0539aa">00160</a> <span class="preprocessor">#define _PVLOGGER_LOGBIN(LOGGER, LEVEL, MESSAGE) \</span>
<a name="l00161"></a>00161 <span class="preprocessor">{\</span>
<a name="l00162"></a>00162 <span class="preprocessor">    if (LOGGER)\</span>
<a name="l00163"></a>00163 <span class="preprocessor">    {\</span>
<a name="l00164"></a>00164 <span class="preprocessor">        if (LOGGER-&gt;IsActive(LEVEL))\</span>
<a name="l00165"></a>00165 <span class="preprocessor">        {\</span>
<a name="l00166"></a>00166 <span class="preprocessor">            LOGGER-&gt;LogMsgBuffers MESSAGE;\</span>
<a name="l00167"></a>00167 <span class="preprocessor">        }\</span>
<a name="l00168"></a>00168 <span class="preprocessor">    }\</span>
<a name="l00169"></a>00169 <span class="preprocessor">}</span>
<a name="l00170"></a>00170 <span class="preprocessor"></span>
<a name="l00171"></a><a class="code" href="pvlogger_8h.html#aa1b59eff1280851272c9ff4b0e1fc3c0">00171</a> <span class="preprocessor">#define _PVLOGGER_LOGBIN_V(LOGGER, LEVEL, MESSAGE) \</span>
<a name="l00172"></a>00172 <span class="preprocessor">{\</span>
<a name="l00173"></a>00173 <span class="preprocessor">    if (LOGGER)\</span>
<a name="l00174"></a>00174 <span class="preprocessor">    {\</span>
<a name="l00175"></a>00175 <span class="preprocessor">        if (LOGGER-&gt;IsActive(LEVEL))\</span>
<a name="l00176"></a>00176 <span class="preprocessor">        {\</span>
<a name="l00177"></a>00177 <span class="preprocessor">            LOGGER-&gt;LogMsgBuffersV MESSAGE;\</span>
<a name="l00178"></a>00178 <span class="preprocessor">        }\</span>
<a name="l00179"></a>00179 <span class="preprocessor">    }\</span>
<a name="l00180"></a>00180 <span class="preprocessor">}</span>
<a name="l00181"></a>00181 <span class="preprocessor"></span>
<a name="l00182"></a>00182 <span class="comment">/*</span>
<a name="l00183"></a>00183 <span class="comment">** In case some compilers cannot support the instrumentation-level macros,</span>
<a name="l00184"></a>00184 <span class="comment">** they can be disabled by defining PVLOGGER_INST_LEVEL_SUPPORT to 0</span>
<a name="l00185"></a>00185 <span class="comment">** in their osclconfig.h.  If instrumentation level is not supported, then</span>
<a name="l00186"></a>00186 <span class="comment">** all instrumentation levels will be compiled in.</span>
<a name="l00187"></a>00187 <span class="comment">**</span>
<a name="l00188"></a>00188 <span class="comment">** If PVLOGGER_INST_LEVEL_SUPPORT is not defined, the default is set here to allow</span>
<a name="l00189"></a>00189 <span class="comment">** compile-time instrumentation level support.</span>
<a name="l00190"></a>00190 <span class="comment">*/</span>
<a name="l00191"></a>00191 <span class="preprocessor">#ifndef PVLOGGER_INST_LEVEL_SUPPORT</span>
<a name="l00192"></a><a class="code" href="pvlogger_8h.html#ac04333bbd92ae6e5befc524e0200c81a">00192</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_INST_LEVEL_SUPPORT 1</span>
<a name="l00193"></a>00193 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00194"></a>00194 <span class="preprocessor"></span>
<a name="l00195"></a>00195 <span class="preprocessor">#if !(PVLOGGER_INST_LEVEL_SUPPORT)</span>
<a name="l00196"></a>00196 <span class="preprocessor"></span>
<a name="l00197"></a>00197 <span class="comment">/*</span>
<a name="l00198"></a>00198 <span class="comment">** A set of logging macros that ignore the instrumentation level.</span>
<a name="l00199"></a>00199 <span class="comment">** All instrumentation levels will be compiled in.</span>
<a name="l00200"></a>00200 <span class="comment">*/</span>
<a name="l00201"></a>00201 <span class="preprocessor">#define PVLOGGER_LOGMSG(IL, LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGMSG(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00202"></a>00202 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_V(IL, LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGMSG_V(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00203"></a>00203 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN(IL, LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGBIN(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00204"></a>00204 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_V(IL, LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGBIN_V(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00205"></a>00205 <span class="preprocessor"></span>
<a name="l00206"></a>00206 <span class="preprocessor">#else //PVLOGGER_INST_LEVEL_SUPPORT</span>
<a name="l00207"></a>00207 <span class="preprocessor"></span>
<a name="l00208"></a>00208 <span class="comment">/*</span>
<a name="l00209"></a>00209 <span class="comment">** This set of macros compiles the logging statements in or out based on the instrumtation</span>
<a name="l00210"></a>00210 <span class="comment">** level.</span>
<a name="l00211"></a>00211 <span class="comment">*/</span>
<a name="l00212"></a>00212 
<a name="l00213"></a>00213 <span class="preprocessor">#if (PVLOGGER_INST_LEVEL &gt; PVLOGMSG_INST_REL)</span>
<a name="l00214"></a><a class="code" href="pvlogger_8h.html#aa803bad5368bfc9b5ebdc900fb4a30c7">00214</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_PVLOGMSG_INST_REL(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGMSG(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00215"></a><a class="code" href="pvlogger_8h.html#af342316ba5dc0aac97a3c43e8de33973">00215</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_V_PVLOGMSG_INST_REL(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGMSG_V(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00216"></a><a class="code" href="pvlogger_8h.html#a7a6f77ae9074702582949edfceb7e4c2">00216</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_PVLOGMSG_INST_REL(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGBIN(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00217"></a><a class="code" href="pvlogger_8h.html#a0a719ba12eb8debf856a3efd6e0ba442">00217</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_V_PVLOGMSG_INST_REL(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGBIN_V(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00218"></a>00218 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00219"></a>00219 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_PVLOGMSG_INST_REL(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00220"></a>00220 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_V_PVLOGMSG_INST_REL(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00221"></a>00221 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_PVLOGMSG_INST_REL(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00222"></a>00222 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_V_PVLOGMSG_INST_REL(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00223"></a>00223 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00224"></a>00224 <span class="preprocessor"></span>
<a name="l00225"></a>00225 <span class="preprocessor">#if (PVLOGGER_INST_LEVEL &gt; PVLOGMSG_INST_PROF)</span>
<a name="l00226"></a><a class="code" href="pvlogger_8h.html#a31c426e424ca3a56cfd951d3ed723f0c">00226</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_PVLOGMSG_INST_PROF(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGMSG(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00227"></a><a class="code" href="pvlogger_8h.html#a8724f10cd0bfd3a9afbab6dec017fc7b">00227</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_V_PVLOGMSG_INST_PROF(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGMSG_V(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00228"></a><a class="code" href="pvlogger_8h.html#a4db71d0f82c539329558f7d2b1b716bc">00228</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_PVLOGMSG_INST_PROF(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGBIN(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00229"></a><a class="code" href="pvlogger_8h.html#a33bd265c4f5bd742f67e010380bd988b">00229</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_V_PVLOGMSG_INST_PROF(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGBIN_V(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00230"></a>00230 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00231"></a>00231 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_PVLOGMSG_INST_PROF(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00232"></a>00232 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_V_PVLOGMSG_INST_PROF(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00233"></a>00233 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_PVLOGMSG_INST_PROF(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00234"></a>00234 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_V_PVLOGMSG_INST_PROF(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00235"></a>00235 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00236"></a>00236 <span class="preprocessor"></span>
<a name="l00237"></a>00237 <span class="preprocessor">#if (PVLOGGER_INST_LEVEL &gt; PVLOGMSG_INST_HLDBG)</span>
<a name="l00238"></a><a class="code" href="pvlogger_8h.html#acb57e663f3adf5e67348fac45e2f3423">00238</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_PVLOGMSG_INST_HLDBG(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGMSG(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00239"></a><a class="code" href="pvlogger_8h.html#ac92e017d753ffee207122993bafd98ab">00239</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_V_PVLOGMSG_INST_HLDBG(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGMSG_V(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00240"></a><a class="code" href="pvlogger_8h.html#a998ff5b10aee7c77a13f6c701262465d">00240</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_PVLOGMSG_INST_HLDBG(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGBIN(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00241"></a><a class="code" href="pvlogger_8h.html#a2409a77d9cca759d235c7170f5247d85">00241</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_V_PVLOGMSG_INST_HLDBG(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGBIN_V(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00242"></a>00242 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00243"></a>00243 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_PVLOGMSG_INST_HLDBG(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00244"></a>00244 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_V_PVLOGMSG_INST_HLDBG(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00245"></a>00245 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_PVLOGMSG_INST_HLDBG(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00246"></a>00246 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_V_PVLOGMSG_INST_HLDBG(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00247"></a>00247 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00248"></a>00248 <span class="preprocessor"></span>
<a name="l00249"></a>00249 <span class="preprocessor">#if (PVLOGGER_INST_LEVEL &gt; PVLOGMSG_INST_MLDBG)</span>
<a name="l00250"></a><a class="code" href="pvlogger_8h.html#a88a44f8c3b5185ceb4a2724b778de923">00250</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_PVLOGMSG_INST_MLDBG(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGMSG(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00251"></a><a class="code" href="pvlogger_8h.html#a63105a3ef2171bf27b55e6c553d66f40">00251</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_V_PVLOGMSG_INST_MLDBG(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGMSG_V(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00252"></a><a class="code" href="pvlogger_8h.html#a11b484741956acdf0f0ff4872e7cc545">00252</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_PVLOGMSG_INST_MLDBG(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGBIN(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00253"></a><a class="code" href="pvlogger_8h.html#ad948334f9c8387f0cb50624a4839f522">00253</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_V_PVLOGMSG_V_INST_MLDBG(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGBIN_V(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00254"></a>00254 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00255"></a>00255 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_PVLOGMSG_INST_MLDBG(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00256"></a>00256 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_V_PVLOGMSG_INST_MLDBG(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00257"></a>00257 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_PVLOGMSG_INST_MLDBG(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00258"></a>00258 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_V_PVLOGMSG_V_INST_MLDBG(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00259"></a>00259 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00260"></a>00260 <span class="preprocessor"></span>
<a name="l00261"></a>00261 <span class="preprocessor">#if (PVLOGGER_INST_LEVEL &gt; PVLOGMSG_INST_LLDBG)</span>
<a name="l00262"></a><a class="code" href="pvlogger_8h.html#ae4b39cfc4eed19ff0e620faf9ca643a7">00262</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_PVLOGMSG_INST_LLDBG(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGMSG(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00263"></a><a class="code" href="pvlogger_8h.html#ad40185940cf07359d64a4642d92ac534">00263</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_V_PVLOGMSG_INST_LLDBG(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGMSG_V(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00264"></a><a class="code" href="pvlogger_8h.html#ade95227b7d9db6a8f13de682ceae072a">00264</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_PVLOGMSG_INST_LLDBG(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGBIN(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00265"></a><a class="code" href="pvlogger_8h.html#a1b6453fbe25a44d9b1c743930054978e">00265</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_V_PVLOGMSG_INST_LLDBG(LOGGER, LEVEL, MESSAGE) _PVLOGGER_LOGBIN_V(LOGGER, LEVEL, MESSAGE)</span>
<a name="l00266"></a>00266 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00267"></a>00267 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_PVLOGMSG_INST_LLDBG(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00268"></a>00268 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_V_PVLOGMSG_INST_LLDBG(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00269"></a>00269 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_PVLOGMSG_INST_LLDBG(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00270"></a>00270 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_V_PVLOGMSG_INST_LLDBG(LOGGER, LEVEL, MESSAGE) OSCL_UNUSED_ARG(LOGGER);</span>
<a name="l00271"></a>00271 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00272"></a>00272 <span class="preprocessor"></span>
<a name="l00273"></a>00273 
<a name="l00288"></a><a class="code" href="pvlogger_8h.html#a2ccbd820269e198460e266963e83ea01">00288</a> <span class="preprocessor">#define PVLOGGER_LOGMSG(IL, LOGGER, LEVEL, MESSAGE) PVLOGGER_LOGMSG_ ## IL (LOGGER, LEVEL, MESSAGE)</span>
<a name="l00289"></a><a class="code" href="pvlogger_8h.html#aede96e5a40af8ee3775f9e3cf07f119d">00289</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGMSG_V(IL, LOGGER, LEVEL, MESSAGE) PVLOGGER_LOGMSG_V_ ## IL (LOGGER, LEVEL, MESSAGE)</span>
<a name="l00290"></a>00290 <span class="preprocessor"></span>
<a name="l00310"></a><a class="code" href="pvlogger_8h.html#af72c16d5133e8e444ac7fce91b194b33">00310</a> <span class="preprocessor">#define PVLOGGER_LOGBIN(IL, LOGGER, LEVEL, MESSAGE) PVLOGGER_LOGBIN_ ## IL (LOGGER, LEVEL, MESSAGE)</span>
<a name="l00311"></a><a class="code" href="pvlogger_8h.html#a99fa647cd48cbefeb36f4fe4c0df56b2">00311</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_LOGBIN_V(IL, LOGGER, LEVEL, MESSAGE) PVLOGGER_LOGBIN_V_ ## IL (LOGGER, LEVEL, MESSAGE)</span>
<a name="l00312"></a>00312 <span class="preprocessor"></span>
<a name="l00313"></a>00313 <span class="preprocessor">#endif //PVLOGGER_INST_LEVEL_SUPPORT</span>
<a name="l00314"></a>00314 <span class="preprocessor"></span>
<a name="l00323"></a><a class="code" href="pvlogger_8h.html#ad69ad3b648626275823c4911c78667cf">00323</a> <span class="preprocessor">#define PVLOGGER_LOG_USE_ONLY(x) x</span>
<a name="l00324"></a>00324 <span class="preprocessor"></span>
<a name="l00325"></a>00325 <span class="preprocessor">#endif // PVLOGGER_INST_LEVEL</span>
<a name="l00326"></a>00326 <span class="preprocessor"></span>
<a name="l00331"></a>00331 <span class="preprocessor">#ifndef PVLOGGER_ENABLE</span>
<a name="l00332"></a>00332 <span class="preprocessor"></span><span class="preprocessor">#if (PVLOGGER_INST_LEVEL&lt;1)</span>
<a name="l00333"></a>00333 <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_ENABLE 0</span>
<a name="l00334"></a>00334 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00335"></a><a class="code" href="pvlogger_8h.html#a779b1c9f68ea142fd48743fce9b57be8">00335</a> <span class="preprocessor"></span><span class="preprocessor">#define PVLOGGER_ENABLE 1</span>
<a name="l00336"></a>00336 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00337"></a>00337 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00338"></a>00338 <span class="preprocessor"></span>
<a name="l00350"></a>00350 <span class="keyword">class </span><a class="code" href="classPVLoggerAppender.html">PVLoggerAppender</a>;
<a name="l00351"></a>00351 <span class="keyword">class </span><a class="code" href="classPVLoggerFilter.html">PVLoggerFilter</a>;
<a name="l00352"></a><a class="code" href="classPVLogger.html">00352</a> <span class="keyword">class </span><a class="code" href="classPVLogger.html">PVLogger</a>
<a name="l00353"></a>00353 {
<a name="l00354"></a>00354     <span class="keyword">public</span>:
<a name="l00355"></a>00355 
<a name="l00356"></a><a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">00356</a>         <span class="keyword">typedef</span> int32 <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">log_level_type</a>;
<a name="l00357"></a><a class="code" href="classPVLogger.html#aa4fbeb8deb89867ae2414db65f987815">00357</a>         <span class="keyword">typedef</span> int32 <a class="code" href="classPVLogger.html#aa4fbeb8deb89867ae2414db65f987815">message_id_type</a>;
<a name="l00358"></a><a class="code" href="classPVLogger.html#ae06d7464a1e5f505ccda6f62fb3ca313">00358</a>         <span class="keyword">typedef</span> int32 <a class="code" href="classPVLogger.html#ae06d7464a1e5f505ccda6f62fb3ca313">filter_status_type</a>;
<a name="l00359"></a><a class="code" href="classPVLogger.html#a3cd7eda43287a1f3d705e57a13bb11f2">00359</a>         <span class="keyword">typedef</span> <a class="code" href="class__OsclBasicAllocator.html">_OsclBasicAllocator</a> <a class="code" href="class__OsclBasicAllocator.html">alloc_type</a>;
<a name="l00360"></a>00360 
<a name="l00369"></a>00369         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classPVLogger.html#a16f998fb3eab069e693bd6d5d89869be">Init</a>();
<a name="l00370"></a>00370 
<a name="l00371"></a>00371 
<a name="l00379"></a>00379         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classPVLogger.html#a1739f33732dbd7e7e4bb98bad763b962">Cleanup</a>();
<a name="l00380"></a>00380 
<a name="l00401"></a>00401         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <span class="keyword">static</span> <a class="code" href="classPVLogger.html">PVLogger</a> *<a class="code" href="classPVLogger.html#a1050cccac5bf862b8a6a2813b0f9c5ab">GetLoggerObject</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* inputTag);
<a name="l00402"></a>00402 
<a name="l00410"></a><a class="code" href="classPVLogger.html#aa88033dcb2db4ea1fbbd606a30f23d1a">00410</a>         <span class="keywordtype">void</span> <a class="code" href="classPVLogger.html#aa88033dcb2db4ea1fbbd606a30f23d1a">SetLogLevel</a>(<a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">log_level_type</a> level)
<a name="l00411"></a>00411         {
<a name="l00412"></a>00412 <span class="preprocessor">#if(PVLOGGER_ENABLE)</span>
<a name="l00413"></a>00413 <span class="preprocessor"></span>            _level = level;
<a name="l00414"></a>00414 <span class="preprocessor">#else</span>
<a name="l00415"></a>00415 <span class="preprocessor"></span>            <a class="code" href="group__osclbase.html#ga0ac3a7c93a978fa6d04c2a5d810612dd">OSCL_UNUSED_ARG</a>(level);
<a name="l00416"></a>00416 <span class="preprocessor">#endif</span>
<a name="l00417"></a>00417 <span class="preprocessor"></span>        }
<a name="l00418"></a>00418 
<a name="l00427"></a>00427         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <span class="keywordtype">void</span> <a class="code" href="classPVLogger.html#a8d7e8e026a1a2ce560804c1d9d650eb6">SetLogLevelAndPropagate</a>(<a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">log_level_type</a> level);
<a name="l00428"></a>00428 
<a name="l00436"></a><a class="code" href="classPVLogger.html#a28272271f4d1b9eb6045a66b4d5004f1">00436</a>         <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">log_level_type</a> <a class="code" href="classPVLogger.html#a28272271f4d1b9eb6045a66b4d5004f1">GetLogLevel</a>()
<a name="l00437"></a>00437         {
<a name="l00438"></a>00438 <span class="preprocessor">#if(PVLOGGER_ENABLE)</span>
<a name="l00439"></a>00439 <span class="preprocessor"></span>            <span class="keywordflow">return</span>(_level);
<a name="l00440"></a>00440 <span class="preprocessor">#else</span>
<a name="l00441"></a>00441 <span class="preprocessor"></span>            <span class="keywordflow">return</span> 0;
<a name="l00442"></a>00442 <span class="preprocessor">#endif</span>
<a name="l00443"></a>00443 <span class="preprocessor"></span>        }
<a name="l00444"></a>00444 
<a name="l00449"></a><a class="code" href="classPVLogger.html#ab7f9fab233ead23fdc0a4075456531b7">00449</a>         <span class="keywordtype">void</span> <a class="code" href="classPVLogger.html#ab7f9fab233ead23fdc0a4075456531b7">DisableAppenderInheritance</a>()
<a name="l00450"></a>00450         {
<a name="l00451"></a>00451 <span class="preprocessor">#if(PVLOGGER_ENABLE)</span>
<a name="l00452"></a>00452 <span class="preprocessor"></span>            _oAppenderInheritance = <span class="keyword">false</span>;
<a name="l00453"></a>00453 <span class="preprocessor">#endif</span>
<a name="l00454"></a>00454 <span class="preprocessor"></span>        }
<a name="l00455"></a>00455 
<a name="l00467"></a><a class="code" href="classPVLogger.html#ab6e46d998c52634ab566ac2380cda4a9">00467</a>         <span class="keywordtype">void</span> <a class="code" href="classPVLogger.html#ab6e46d998c52634ab566ac2380cda4a9">AddAppender</a>(<a class="code" href="classOsclSharedPtr.html" title="A parameterized smart pointer class.">OsclSharedPtr&lt;PVLoggerAppender&gt;</a> &amp;appender)
<a name="l00468"></a>00468         {
<a name="l00469"></a>00469 <span class="preprocessor">#if(PVLOGGER_ENABLE)</span>
<a name="l00470"></a>00470 <span class="preprocessor"></span>            _pOwnAppenderVec.<a class="code" href="classOscl__Vector.html#a1db6a9793976d83483ced5b5eda5ca24">push_back</a>(appender);
<a name="l00471"></a>00471 <span class="preprocessor">#else</span>
<a name="l00472"></a>00472 <span class="preprocessor"></span>            <a class="code" href="group__osclbase.html#ga0ac3a7c93a978fa6d04c2a5d810612dd">OSCL_UNUSED_ARG</a>(appender);
<a name="l00473"></a>00473 <span class="preprocessor">#endif</span>
<a name="l00474"></a>00474 <span class="preprocessor"></span>        }
<a name="l00475"></a>00475 
<a name="l00485"></a><a class="code" href="classPVLogger.html#ad093d21fc9a868735dac8579cc097b2f">00485</a>         <span class="keywordtype">void</span> <a class="code" href="classPVLogger.html#ad093d21fc9a868735dac8579cc097b2f">RemoveAppender</a>(<a class="code" href="classOsclSharedPtr.html" title="A parameterized smart pointer class.">OsclSharedPtr&lt;PVLoggerAppender&gt;</a> &amp;appender)
<a name="l00486"></a>00486         {
<a name="l00487"></a>00487 <span class="preprocessor">#if(PVLOGGER_ENABLE)</span>
<a name="l00488"></a>00488 <span class="preprocessor"></span>            <span class="keywordflow">for</span> (<a class="code" href="classOscl__Vector.html">Oscl_Vector</a>&lt;<a class="code" href="classOsclSharedPtr.html" title="A parameterized smart pointer class.">OsclSharedPtr&lt;PVLoggerAppender&gt;</a>, <a class="code" href="class__OsclBasicAllocator.html">alloc_type</a>&gt;::iterator it = _pOwnAppenderVec.<a class="code" href="classOscl__Vector.html#a04bdb31a53c5da68f5175cf66df4246c">begin</a>();
<a name="l00489"></a>00489                     it != _pOwnAppenderVec.<a class="code" href="classOscl__Vector.html#ad0f45d83980dd64a5a9097adf9690e49">end</a>();
<a name="l00490"></a>00490                     it++)
<a name="l00491"></a>00491             {
<a name="l00492"></a>00492                 <span class="keywordflow">if</span> ((*it).GetRep() == appender.<a class="code" href="group__osclbase.html#ga16e5b2c74486acf9d5721e47dbeaa8d6" title="Use this function to get a pointer to the wrapped object.">GetRep</a>())
<a name="l00493"></a>00493                 {
<a name="l00494"></a>00494                     _pOwnAppenderVec.<a class="code" href="classOscl__Vector.html#aefa75c9a551fb4e4fbf31613924910d5">erase</a>(it);
<a name="l00495"></a>00495                     <span class="keywordflow">break</span>;
<a name="l00496"></a>00496                 }
<a name="l00497"></a>00497             }
<a name="l00498"></a>00498 <span class="preprocessor">#else</span>
<a name="l00499"></a>00499 <span class="preprocessor"></span>            <a class="code" href="group__osclbase.html#ga0ac3a7c93a978fa6d04c2a5d810612dd">OSCL_UNUSED_ARG</a>(appender);
<a name="l00500"></a>00500 <span class="preprocessor">#endif</span>
<a name="l00501"></a>00501 <span class="preprocessor"></span>        }
<a name="l00502"></a>00502 
<a name="l00514"></a><a class="code" href="classPVLogger.html#a633004f1642e563df50dc27cb9d68f71">00514</a>         <span class="keywordtype">void</span> <a class="code" href="classPVLogger.html#a633004f1642e563df50dc27cb9d68f71">AddFilter</a>(<a class="code" href="classOsclSharedPtr.html" title="A parameterized smart pointer class.">OsclSharedPtr&lt;PVLoggerFilter&gt;</a> &amp;filter)
<a name="l00515"></a>00515         {
<a name="l00516"></a>00516 <span class="preprocessor">#if(PVLOGGER_ENABLE)</span>
<a name="l00517"></a>00517 <span class="preprocessor"></span>            _pMsgFilterVec.<a class="code" href="classOscl__Vector.html#a1db6a9793976d83483ced5b5eda5ca24">push_back</a>(filter);
<a name="l00518"></a>00518 <span class="preprocessor">#else</span>
<a name="l00519"></a>00519 <span class="preprocessor"></span>            <a class="code" href="group__osclbase.html#ga0ac3a7c93a978fa6d04c2a5d810612dd">OSCL_UNUSED_ARG</a>(filter);
<a name="l00520"></a>00520 <span class="preprocessor">#endif</span>
<a name="l00521"></a>00521 <span class="preprocessor"></span>        };
<a name="l00522"></a>00522 
<a name="l00526"></a><a class="code" href="classPVLogger.html#a5e8ee20ae00a0538cc7b0e02f52d3c56">00526</a>         uint32 <a class="code" href="classPVLogger.html#a5e8ee20ae00a0538cc7b0e02f52d3c56">GetNumAppenders</a>()
<a name="l00527"></a>00527         {
<a name="l00528"></a>00528 <span class="preprocessor">#if(PVLOGGER_ENABLE)</span>
<a name="l00529"></a>00529 <span class="preprocessor"></span>            <span class="keywordflow">return</span>(_pOwnAppenderVec.<a class="code" href="classOscl__Vector__Base.html#a9145d16629b48fb70851d77e1920a2ea">size</a>());
<a name="l00530"></a>00530 <span class="preprocessor">#else</span>
<a name="l00531"></a>00531 <span class="preprocessor"></span>            <span class="keywordflow">return</span> 0;
<a name="l00532"></a>00532 <span class="preprocessor">#endif</span>
<a name="l00533"></a>00533 <span class="preprocessor"></span>        }
<a name="l00534"></a>00534 
<a name="l00546"></a>00546         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <span class="keywordtype">bool</span> <a class="code" href="classPVLogger.html#aef582b5ba7d56e9f70d14d812d7a960e">IsActive</a>(<a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">log_level_type</a> level);
<a name="l00547"></a>00547 
<a name="l00561"></a>00561         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <span class="keywordtype">void</span> <a class="code" href="classPVLogger.html#ae96f6101dcae915b5192a423f4d25914">LogMsgStringV</a>(<a class="code" href="classPVLogger.html#aa4fbeb8deb89867ae2414db65f987815">message_id_type</a> msgID, <span class="keyword">const</span> <span class="keywordtype">char</span> * fmt, va_list arguments);
<a name="l00562"></a>00562 
<a name="l00576"></a>00576         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <span class="keywordtype">void</span> <a class="code" href="classPVLogger.html#a3bfc00ac5590bc465a7fbb41948bced3">LogMsgBuffersV</a>(<a class="code" href="classPVLogger.html#aa4fbeb8deb89867ae2414db65f987815">message_id_type</a> msgID, int32 numPairs, va_list arguments);
<a name="l00577"></a>00577 
<a name="l00591"></a>00591         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <span class="keywordtype">void</span> <a class="code" href="classPVLogger.html#a4ca9d7b2aa229944438f48e4d38265c5">LogMsgString</a>(<a class="code" href="classPVLogger.html#aa4fbeb8deb89867ae2414db65f987815">message_id_type</a> msgID, <span class="keyword">const</span> <span class="keywordtype">char</span> * fmt, ...);
<a name="l00592"></a>00592 
<a name="l00606"></a>00606         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <span class="keywordtype">void</span> <a class="code" href="classPVLogger.html#ab6be0c9da82fdecf3e84fef0b201b022">LogMsgBuffers</a>(<a class="code" href="classPVLogger.html#aa4fbeb8deb89867ae2414db65f987815">message_id_type</a> msgID, int32 numPairs, ...);
<a name="l00607"></a>00607 
<a name="l00618"></a>00618         <a class="code" href="osclconfig_8h.html#a6de0f53c5c11f8f53ce72c70d74d9abc">OSCL_IMPORT_REF</a> <a class="code" href="classPVLogger.html#a7c7b271f36f77ac4300a64e89e481629">PVLogger</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* inputTag, <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">log_level_type</a> level, <span class="keywordtype">bool</span> oAppenderInheritance);
<a name="l00619"></a>00619 
<a name="l00620"></a><a class="code" href="classPVLogger.html#a63577708dc4cbd54829d7b0c59d53d0f">00620</a>         <span class="keyword">virtual</span> <a class="code" href="classPVLogger.html#a63577708dc4cbd54829d7b0c59d53d0f">~PVLogger</a>()
<a name="l00621"></a>00621         {
<a name="l00622"></a>00622 <span class="preprocessor">#if(PVLOGGER_ENABLE)</span>
<a name="l00623"></a>00623 <span class="preprocessor"></span>            _tagAllocator.<a class="code" href="classOscl__TAlloc.html#aad556619cdcb4169d32df057fa4bce93">deallocate</a>(_tag);
<a name="l00624"></a>00624 <span class="preprocessor">#endif</span>
<a name="l00625"></a>00625 <span class="preprocessor"></span>        }
<a name="l00626"></a>00626 
<a name="l00627"></a>00627 <span class="preprocessor">#if(PVLOGGER_ENABLE)</span>
<a name="l00628"></a>00628 <span class="preprocessor"></span>    <span class="keyword">protected</span>:
<a name="l00629"></a><a class="code" href="classPVLogger.html#abb04741a6424789fd6090a3f46c07f32">00629</a>         <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classPVLoggerRegistry.html">PVLoggerRegistry</a>;
<a name="l00630"></a><a class="code" href="classPVLogger.html#af0b9845f3f03c067e1087fcbbf57df55">00630</a>         <span class="keywordtype">void</span> <a class="code" href="classPVLogger.html#af0b9845f3f03c067e1087fcbbf57df55">SetParent</a>(<a class="code" href="classPVLogger.html">PVLogger</a> *parentLogger)
<a name="l00631"></a>00631         {
<a name="l00632"></a>00632             _parentLogger = parentLogger;
<a name="l00633"></a>00633         }
<a name="l00634"></a><a class="code" href="classPVLogger.html#a047e5ec82674d24e46aad143585d0cb4">00634</a>         <a class="code" href="classPVLogger.html">PVLogger</a> *<a class="code" href="classPVLogger.html#a047e5ec82674d24e46aad143585d0cb4">GetParent</a>()
<a name="l00635"></a>00635         {
<a name="l00636"></a>00636             <span class="keywordflow">return</span>(_parentLogger);
<a name="l00637"></a>00637         }
<a name="l00638"></a>00638 
<a name="l00639"></a>00639     <span class="keyword">private</span>:
<a name="l00640"></a>00640         <a class="code" href="classPVLogger.html#ae06d7464a1e5f505ccda6f62fb3ca313">filter_status_type</a> FilterMsg(<a class="code" href="classPVLogger.html#aa4fbeb8deb89867ae2414db65f987815">message_id_type</a> msgID);
<a name="l00641"></a>00641         <span class="keywordtype">void</span> LogMsg(<a class="code" href="classPVLogger.html#aa4fbeb8deb89867ae2414db65f987815">message_id_type</a> msgID, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, va_list arguments);
<a name="l00642"></a>00642         <span class="keywordtype">void</span> LogMsg(<a class="code" href="classPVLogger.html#aa4fbeb8deb89867ae2414db65f987815">message_id_type</a> msgID, int32 numPairs, va_list arguments);
<a name="l00643"></a>00643 
<a name="l00644"></a>00644         <span class="keywordtype">char</span>* _tag;
<a name="l00645"></a>00645         <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">log_level_type</a> _level;
<a name="l00646"></a>00646         <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">log_level_type</a> _lastMsgLevel;
<a name="l00647"></a>00647         <span class="keywordtype">bool</span> _oAppenderInheritance;
<a name="l00648"></a>00648 
<a name="l00649"></a>00649         <a class="code" href="classPVLogger.html">PVLogger</a> *_parentLogger;
<a name="l00650"></a>00650         <a class="code" href="classOscl__TAlloc.html">Oscl_TAlloc&lt;char, alloc_type&gt;</a> _tagAllocator;
<a name="l00651"></a>00651 
<a name="l00652"></a>00652         <a class="code" href="classOscl__Vector.html">Oscl_Vector&lt;OsclSharedPtr&lt;PVLoggerFilter&gt;</a>, <a class="code" href="classPVLogger.html#a3cd7eda43287a1f3d705e57a13bb11f2">alloc_type</a>&gt; _pMsgFilterVec;
<a name="l00653"></a>00653         <a class="code" href="classOscl__Vector.html">Oscl_Vector&lt;OsclSharedPtr&lt;PVLoggerAppender&gt;</a>, <a class="code" href="classPVLogger.html#a3cd7eda43287a1f3d705e57a13bb11f2">alloc_type</a>&gt;  _pOwnAppenderVec;
<a name="l00654"></a>00654 <span class="preprocessor">#endif //PVLOGGER_ENABLE</span>
<a name="l00655"></a>00655 <span class="preprocessor"></span>};
<a name="l00656"></a>00656 
<a name="l00658"></a>00658 <span class="comment">// log message levels</span>
<a name="l00660"></a>00660 <span class="comment"></span>
<a name="l00664"></a><a class="code" href="pvlogger_8h.html#a41ddd1dfc61af8cc56c3e87c5c57c816">00664</a> <span class="keyword">const</span> <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">PVLogger::log_level_type</a> <a class="code" href="pvlogger_8h.html#a41ddd1dfc61af8cc56c3e87c5c57c816">PVLOGMSG_EMERG</a>   = 0;
<a name="l00668"></a><a class="code" href="pvlogger_8h.html#ad72f35287c1dafba3e3aef5d1000e4c6">00668</a> <span class="keyword">const</span> <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">PVLogger::log_level_type</a> <a class="code" href="pvlogger_8h.html#ad72f35287c1dafba3e3aef5d1000e4c6">PVLOGMSG_ALERT</a>   = 1;
<a name="l00672"></a><a class="code" href="pvlogger_8h.html#af2597d4dfec23c35da25ffa3a53974a8">00672</a> <span class="keyword">const</span> <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">PVLogger::log_level_type</a> <a class="code" href="pvlogger_8h.html#af2597d4dfec23c35da25ffa3a53974a8">PVLOGMSG_CRIT</a>    = 2;
<a name="l00676"></a><a class="code" href="pvlogger_8h.html#a7b2586541cda3ae64f7ec517e72f747a">00676</a> <span class="keyword">const</span> <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">PVLogger::log_level_type</a> <a class="code" href="pvlogger_8h.html#a7b2586541cda3ae64f7ec517e72f747a">PVLOGMSG_ERR</a>     = 3;
<a name="l00680"></a><a class="code" href="pvlogger_8h.html#a324e17503340d01468a4487091b39330">00680</a> <span class="keyword">const</span> <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">PVLogger::log_level_type</a> <a class="code" href="pvlogger_8h.html#a324e17503340d01468a4487091b39330">PVLOGMSG_WARNING</a> = 4;
<a name="l00684"></a><a class="code" href="pvlogger_8h.html#a93513c12382ced3ffa2c23c88bfe84bb">00684</a> <span class="keyword">const</span> <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">PVLogger::log_level_type</a> <a class="code" href="pvlogger_8h.html#a93513c12382ced3ffa2c23c88bfe84bb">PVLOGMSG_NOTICE</a>  = 5;
<a name="l00688"></a><a class="code" href="pvlogger_8h.html#a534e2175302b4b489d927c6afaee0dde">00688</a> <span class="keyword">const</span> <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">PVLogger::log_level_type</a> <a class="code" href="pvlogger_8h.html#a534e2175302b4b489d927c6afaee0dde">PVLOGMSG_INFO</a>    = 6;
<a name="l00692"></a><a class="code" href="pvlogger_8h.html#a0dcec07485cdb4d1e001882cd69d6d31">00692</a> <span class="keyword">const</span> <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">PVLogger::log_level_type</a> <a class="code" href="pvlogger_8h.html#a0dcec07485cdb4d1e001882cd69d6d31">PVLOGMSG_STACK_TRACE</a> = 7;
<a name="l00696"></a><a class="code" href="pvlogger_8h.html#aef1092e8c4ba5d61ae9b3d55386aac31">00696</a> <span class="keyword">const</span> <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">PVLogger::log_level_type</a> <a class="code" href="pvlogger_8h.html#aef1092e8c4ba5d61ae9b3d55386aac31">PVLOGMSG_DEBUG</a>   = 8;
<a name="l00697"></a>00697 
<a name="l00699"></a>00699 <span class="comment">// do not use these levels</span>
<a name="l00700"></a>00700 <span class="comment">// for backward compatibility only</span>
<a name="l00702"></a><a class="code" href="pvlogger_8h.html#add7dba7f8b6225a69713aa13267edf16">00702</a> <span class="comment"></span><span class="keyword">const</span> <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">PVLogger::log_level_type</a> <a class="code" href="pvlogger_8h.html#add7dba7f8b6225a69713aa13267edf16">PVLOGMSG_FATAL_ERROR</a>    = <a class="code" href="pvlogger_8h.html#a41ddd1dfc61af8cc56c3e87c5c57c816">PVLOGMSG_EMERG</a>;
<a name="l00703"></a><a class="code" href="pvlogger_8h.html#a356d59b598bbc1b0e72e4b4a02e032b7">00703</a> <span class="keyword">const</span> <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">PVLogger::log_level_type</a> <a class="code" href="pvlogger_8h.html#a356d59b598bbc1b0e72e4b4a02e032b7">PVLOGMSG_NONFATAL_ERROR</a> = <a class="code" href="pvlogger_8h.html#a7b2586541cda3ae64f7ec517e72f747a">PVLOGMSG_ERR</a>;
<a name="l00704"></a><a class="code" href="pvlogger_8h.html#a9caa5a184ff209f0a0095eb8f3d87f9a">00704</a> <span class="keyword">const</span> <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">PVLogger::log_level_type</a> <a class="code" href="pvlogger_8h.html#a9caa5a184ff209f0a0095eb8f3d87f9a">PVLOGMSG_STATISTIC</a>      = <a class="code" href="pvlogger_8h.html#a534e2175302b4b489d927c6afaee0dde">PVLOGMSG_INFO</a>;
<a name="l00705"></a><a class="code" href="pvlogger_8h.html#aa41a35f4e69c05d9c48ea2f3ef9060a5">00705</a> <span class="keyword">const</span> <a class="code" href="classPVLogger.html#aa09724be71250bc721f19885e230873d">PVLogger::log_level_type</a> <a class="code" href="pvlogger_8h.html#aa41a35f4e69c05d9c48ea2f3ef9060a5">PVLOGMSG_VERBOSE</a>        = <a class="code" href="pvlogger_8h.html#aef1092e8c4ba5d61ae9b3d55386aac31">PVLOGMSG_DEBUG</a>;
<a name="l00706"></a>00706 
<a name="l00707"></a>00707 <span class="preprocessor">#endif // PVLOGGER_H_INCLUDED</span>
</pre></div></div>
<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: CORE_9.002.1.1 </small>
</small></address>
</body>
</html>