File: classlog4cpp_1_1FixedContextCategory.html

package info (click to toggle)
log4cpp-doc 1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,528 kB
  • sloc: makefile: 10
file content (577 lines) | stat: -rw-r--r-- 38,684 bytes parent folder | download | duplicates (5)
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
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>log4cpp: log4cpp::FixedContextCategory Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.2 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<div class="tabs">
  <ul>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul>
</div>
<div class="nav">
<a class="el" href="namespacelog4cpp.html">log4cpp</a>::<a class="el" href="classlog4cpp_1_1FixedContextCategory.html">FixedContextCategory</a></div>
<h1>log4cpp::FixedContextCategory Class Reference</h1><!-- doxytag: class="log4cpp::FixedContextCategory" --><!-- doxytag: inherits="log4cpp::Category" -->This <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> subclass replaces the <a class="el" href="classlog4cpp_1_1NDC.html" title="The NDC class implements nested diagnostic contexts as defined by Neil Harrison in...">NDC</a> field in LoggingEvents with a fixed context string.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="FixedContextCategory_8hh-source.html">FixedContextCategory.hh</a>&gt;</code>
<p>
Inheritance diagram for log4cpp::FixedContextCategory:<p><center><img src="classlog4cpp_1_1FixedContextCategory__inherit__graph.gif" border="0" usemap="#log4cpp_1_1FixedContextCategory__inherit__map" alt="Inheritance graph"></center>
<map name="log4cpp_1_1FixedContextCategory__inherit__map">
<area shape="rect" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package." alt="" coords="41,5,161,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for log4cpp::FixedContextCategory:<p><center><img src="classlog4cpp_1_1FixedContextCategory__coll__graph.gif" border="0" usemap="#log4cpp_1_1FixedContextCategory__coll__map" alt="Collaboration graph"></center>
<map name="log4cpp_1_1FixedContextCategory__coll__map">
<area shape="rect" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package." alt="" coords="41,96,161,123"><area shape="rect" title="_delegate" alt="" coords="97,119,105,127"><area shape="rect" title="_delegate" alt="" coords="97,183,105,191"><area shape="rect" title="_parent" alt="" coords="124,92,132,100"><area shape="rect" title="_parent" alt="" coords="124,119,132,127"><area shape="rect" href="classlog4cpp_1_1threading_1_1Mutex.html" title="log4cpp::threading::Mutex" alt="" coords="20,5,183,32"><area shape="rect" title="_appenderSetMutex" alt="" coords="97,28,105,36"><area shape="rect" title="_appenderSetMutex" alt="" coords="97,92,105,100"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classlog4cpp_1_1FixedContextCategory-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#94b2f7203eedb15bf8789ab2e22c3773">FixedContextCategory</a> (const std::string &amp;name, const std::string &amp;context=&quot;&quot;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Constructor.  <a href="#94b2f7203eedb15bf8789ab2e22c3773"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#e4171b58eeadfbf42a9dec417d943362">~FixedContextCategory</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor for <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>.  <a href="#e4171b58eeadfbf42a9dec417d943362"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#e2170fbeaacd8cac9250fa7f42377cb5">setContext</a> (const std::string &amp;context)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the context string used as <a class="el" href="classlog4cpp_1_1NDC.html" title="The NDC class implements nested diagnostic contexts as defined by Neil Harrison in...">NDC</a>.  <a href="#e2170fbeaacd8cac9250fa7f42377cb5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual std::string&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#88d2c4fe8eb5e3b9cc72187537760996">getContext</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the context string used as <a class="el" href="classlog4cpp_1_1NDC.html" title="The NDC class implements nested diagnostic contexts as defined by Neil Harrison in...">NDC</a>.  <a href="#88d2c4fe8eb5e3b9cc72187537760996"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#1379f702ffe004a6e49f16200a4a8451">getPriority</a> () const  throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the assigned <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a>, if any, for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>.  <a href="#1379f702ffe004a6e49f16200a4a8451"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#aae2ab77ef515783f0e8bb991ebf8e6f">getChainedPriority</a> () const  throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Starting from this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, search the category hierarchy for a set priority and return it.  <a href="#aae2ab77ef515783f0e8bb991ebf8e6f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#6f16b049334663624afabed150401669">addAppender</a> (<a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *appender)  throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">For the moment this method does nothing.  <a href="#6f16b049334663624afabed150401669"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#1e58c08c075dab8bb0957b48df6b7b92">addAppender</a> (<a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> &amp;appender)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">For the moment this method does nothing.  <a href="#1e58c08c075dab8bb0957b48df6b7b92"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#9b13596e9d0a744eeba91301c0f92f10">getAppender</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, or NULL if no <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> has been set.  <a href="#9b13596e9d0a744eeba91301c0f92f10"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#49bd7011aeb5b83c148032d8562f1ae2">getAppender</a> (const std::string &amp;name) const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the specified <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, or NULL if the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> is not attached to this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>.  <a href="#49bd7011aeb5b83c148032d8562f1ae2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="namespacelog4cpp.html#33a2e97cb897835dadbe401c6f9d658d">AppenderSet</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#78aecc1c04000b4efa10c54d28152288">getAllAppenders</a> () const</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the set of Appenders currently attached to this Catogory.  <a href="#78aecc1c04000b4efa10c54d28152288"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#e052abcf7eb04a314400b43c58c78b68">removeAllAppenders</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Removes all appenders set for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>.  <a href="#e052abcf7eb04a314400b43c58c78b68"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#b4df6683f5f2ed7df747e00c408f1052">ownsAppender</a> () const  throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">FixedContextAppenders cannot own Appenders.  <a href="#b4df6683f5f2ed7df747e00c408f1052"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#ba03edb789364cb9ff2751ebe829287e">ownsAppender</a> (<a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *appender) const  throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">FixedContextAppenders cannot own Appenders.  <a href="#ba03edb789364cb9ff2751ebe829287e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#72e2e2486bcc823b4a4318dad4bea0df">callAppenders</a> (const <a class="el" href="structlog4cpp_1_1LoggingEvent.html">LoggingEvent</a> &amp;event)  throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Call the appenders in the hierarchy starting at <code>this</code>.  <a href="#72e2e2486bcc823b4a4318dad4bea0df"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#050500a967022390512eb4bc776cb648">setAdditivity</a> (bool additivity)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Set the additivity flag for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> instance.  <a href="#050500a967022390512eb4bc776cb648"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#c76c9aa4880af78d41bc3745e4363f15">getAdditivity</a> () const  throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the additivity flag for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> instance.  <a href="#c76c9aa4880af78d41bc3745e4363f15"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1FixedContextCategory.html#abd251a7a6198fb8235defeeefa9d0ed">_logUnconditionally2</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority, const std::string &amp;message)  throw ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Unconditionally log a message with the specified priority.  <a href="#abd251a7a6198fb8235defeeefa9d0ed"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> subclass replaces the <a class="el" href="classlog4cpp_1_1NDC.html" title="The NDC class implements nested diagnostic contexts as defined by Neil Harrison in...">NDC</a> field in LoggingEvents with a fixed context string. 
<p>
All handling of Appenders, etc. is delgated to the 'normal' <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> with the same name. Its intended use is for object instances that serve a single client: they contruct a <a class="el" href="classlog4cpp_1_1FixedContextCategory.html" title="This Category subclass replaces the NDC field in LoggingEvents with a fixed context...">FixedContextCategory</a> with the client identifier as context. Unlike with regular <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> instances one has to explicitly create <a class="el" href="classlog4cpp_1_1FixedContextCategory.html" title="This Category subclass replaces the NDC field in LoggingEvents with a fixed context...">FixedContextCategory</a> instances using the constructor. This also implies one has to take cake of destruction of the instance as well. <dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.4 </dd></dl>

<p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="94b2f7203eedb15bf8789ab2e22c3773"></a><!-- doxytag: member="log4cpp::FixedContextCategory::FixedContextCategory" ref="94b2f7203eedb15bf8789ab2e22c3773" args="(const std::string &amp;name, const std::string &amp;context=&quot;&quot;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">log4cpp::FixedContextCategory::FixedContextCategory           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>context</em> = <code>&quot;&quot;</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Constructor. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>the fully qualified name of this Categories delegate <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>the context to fill the <a class="el" href="classlog4cpp_1_1NDC.html" title="The NDC class implements nested diagnostic contexts as defined by Neil Harrison in...">NDC</a> field of LoggingEvents with. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="e4171b58eeadfbf42a9dec417d943362"></a><!-- doxytag: member="log4cpp::FixedContextCategory::~FixedContextCategory" ref="e4171b58eeadfbf42a9dec417d943362" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">log4cpp::FixedContextCategory::~FixedContextCategory           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destructor for <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. 
<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="e2170fbeaacd8cac9250fa7f42377cb5"></a><!-- doxytag: member="log4cpp::FixedContextCategory::setContext" ref="e2170fbeaacd8cac9250fa7f42377cb5" args="(const std::string &amp;context)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log4cpp::FixedContextCategory::setContext           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>context</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the context string used as <a class="el" href="classlog4cpp_1_1NDC.html" title="The NDC class implements nested diagnostic contexts as defined by Neil Harrison in...">NDC</a>. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>the context string </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="88d2c4fe8eb5e3b9cc72187537760996"></a><!-- doxytag: member="log4cpp::FixedContextCategory::getContext" ref="88d2c4fe8eb5e3b9cc72187537760996" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string log4cpp::FixedContextCategory::getContext           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the context string used as <a class="el" href="classlog4cpp_1_1NDC.html" title="The NDC class implements nested diagnostic contexts as defined by Neil Harrison in...">NDC</a>. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the context string. </dd></dl>

</div>
</div><p>
<a class="anchor" name="1379f702ffe004a6e49f16200a4a8451"></a><!-- doxytag: member="log4cpp::FixedContextCategory::getPriority" ref="1379f702ffe004a6e49f16200a4a8451" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> log4cpp::FixedContextCategory::getPriority           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const  throw ()<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the assigned <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a>, if any, for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd><a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a> - the assigned <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a>, can be <a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1afebdf006bbefb65f1d654594992ac4e4f">Priority::NOTSET</a> </dd></dl>

<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#fad71a8a9f81881ff6d27664450b30e0">log4cpp::Category</a>.
</div>
</div><p>
<a class="anchor" name="aae2ab77ef515783f0e8bb991ebf8e6f"></a><!-- doxytag: member="log4cpp::FixedContextCategory::getChainedPriority" ref="aae2ab77ef515783f0e8bb991ebf8e6f" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> log4cpp::FixedContextCategory::getChainedPriority           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const  throw ()<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Starting from this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, search the category hierarchy for a set priority and return it. 
<p>
Otherwise, return the priority of the root category.<p>
The <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> class is designed so that this method executes as quickly as possible. 
<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#fcc940d4a40f43c30f7eaa99134a4248">log4cpp::Category</a>.
</div>
</div><p>
<a class="anchor" name="6f16b049334663624afabed150401669"></a><!-- doxytag: member="log4cpp::FixedContextCategory::addAppender" ref="6f16b049334663624afabed150401669" args="(Appender *appender)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log4cpp::FixedContextCategory::addAppender           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *&nbsp;</td>
          <td class="paramname"> <em>appender</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">  throw ()<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
For the moment this method does nothing. 
<p>

<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#fe22130ca03516ea3f9331446e2b0d5d">log4cpp::Category</a>.
</div>
</div><p>
<a class="anchor" name="1e58c08c075dab8bb0957b48df6b7b92"></a><!-- doxytag: member="log4cpp::FixedContextCategory::addAppender" ref="1e58c08c075dab8bb0957b48df6b7b92" args="(Appender &amp;appender)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log4cpp::FixedContextCategory::addAppender           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>appender</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
For the moment this method does nothing. 
<p>

<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#f6e26395fb0fdcd842fa9b8d32dbaace">log4cpp::Category</a>.
</div>
</div><p>
<a class="anchor" name="9b13596e9d0a744eeba91301c0f92f10"></a><!-- doxytag: member="log4cpp::FixedContextCategory::getAppender" ref="9b13596e9d0a744eeba91301c0f92f10" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * log4cpp::FixedContextCategory::getAppender           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, or NULL if no <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> has been set. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. </dd></dl>

<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#5030948c81713699690b2597d1a8b241">log4cpp::Category</a>.
</div>
</div><p>
<a class="anchor" name="49bd7011aeb5b83c148032d8562f1ae2"></a><!-- doxytag: member="log4cpp::FixedContextCategory::getAppender" ref="49bd7011aeb5b83c148032d8562f1ae2" args="(const std::string &amp;name) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * log4cpp::FixedContextCategory::getAppender           </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>name</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the specified <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>, or NULL if the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> is not attached to this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. 
<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>0.2.7 </dd></dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. </dd></dl>

<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#a3196ef8d805efe4bb08947ed5d4be15">log4cpp::Category</a>.
</div>
</div><p>
<a class="anchor" name="78aecc1c04000b4efa10c54d28152288"></a><!-- doxytag: member="log4cpp::FixedContextCategory::getAllAppenders" ref="78aecc1c04000b4efa10c54d28152288" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespacelog4cpp.html#33a2e97cb897835dadbe401c6f9d658d">AppenderSet</a> log4cpp::FixedContextCategory::getAllAppenders           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the set of Appenders currently attached to this Catogory. 
<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>0.3.1 </dd></dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>The set of attached Appenders. </dd></dl>

<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#90da601f1365123163c086f802d76e70">log4cpp::Category</a>.
</div>
</div><p>
<a class="anchor" name="e052abcf7eb04a314400b43c58c78b68"></a><!-- doxytag: member="log4cpp::FixedContextCategory::removeAllAppenders" ref="e052abcf7eb04a314400b43c58c78b68" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log4cpp::FixedContextCategory::removeAllAppenders           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Removes all appenders set for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a>. 
<p>
Currently a <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> can have only one appender, but this may change in the future. 
<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#aa875c937496cbae47305505658cc13d">log4cpp::Category</a>.
</div>
</div><p>
<a class="anchor" name="b4df6683f5f2ed7df747e00c408f1052"></a><!-- doxytag: member="log4cpp::FixedContextCategory::ownsAppender" ref="b4df6683f5f2ed7df747e00c408f1052" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool log4cpp::FixedContextCategory::ownsAppender           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const  throw ()<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
FixedContextAppenders cannot own Appenders. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>false </dd></dl>

<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#1b7ff7cf9cad511467efd985bbf81904">log4cpp::Category</a>.
</div>
</div><p>
<a class="anchor" name="ba03edb789364cb9ff2751ebe829287e"></a><!-- doxytag: member="log4cpp::FixedContextCategory::ownsAppender" ref="ba03edb789364cb9ff2751ebe829287e" args="(Appender *appender) const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool log4cpp::FixedContextCategory::ownsAppender           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> *&nbsp;</td>
          <td class="paramname"> <em>appender</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const  throw ()<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
FixedContextAppenders cannot own Appenders. 
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>false </dd></dl>

<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#0bebf43896dabbfb80e5b038e772d78c">log4cpp::Category</a>.
</div>
</div><p>
<a class="anchor" name="72e2e2486bcc823b4a4318dad4bea0df"></a><!-- doxytag: member="log4cpp::FixedContextCategory::callAppenders" ref="72e2e2486bcc823b4a4318dad4bea0df" args="(const LoggingEvent &amp;event)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log4cpp::FixedContextCategory::callAppenders           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structlog4cpp_1_1LoggingEvent.html">LoggingEvent</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>event</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%">  throw ()<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Call the appenders in the hierarchy starting at <code>this</code>. 
<p>
If no appenders could be found, emit a warning.<p>
This method always calls all the appenders inherited form the hierracy circumventing any evaluation of whether to log or not to log the particular log request.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>event</em>&nbsp;</td><td>The <a class="el" href="structlog4cpp_1_1LoggingEvent.html" title="The internal representation of logging events.">LoggingEvent</a> to log. </td></tr>
  </table>
</dl>

<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#c07af8f9e1f8342dce0a437c6ad9764f">log4cpp::Category</a>.
</div>
</div><p>
<a class="anchor" name="050500a967022390512eb4bc776cb648"></a><!-- doxytag: member="log4cpp::FixedContextCategory::setAdditivity" ref="050500a967022390512eb4bc776cb648" args="(bool additivity)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log4cpp::FixedContextCategory::setAdditivity           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>additivity</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Set the additivity flag for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> instance. 
<p>

<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#604ed38018f864308c329d043847c5b3">log4cpp::Category</a>.
</div>
</div><p>
<a class="anchor" name="c76c9aa4880af78d41bc3745e4363f15"></a><!-- doxytag: member="log4cpp::FixedContextCategory::getAdditivity" ref="c76c9aa4880af78d41bc3745e4363f15" args="() const" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool log4cpp::FixedContextCategory::getAdditivity           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const  throw ()<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the additivity flag for this <a class="el" href="classlog4cpp_1_1Category.html" title="This is the central class in the log4j package.">Category</a> instance. 
<p>

<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#55457f5f7c4501b034ae87c099896bf6">log4cpp::Category</a>.
</div>
</div><p>
<a class="anchor" name="abd251a7a6198fb8235defeeefa9d0ed"></a><!-- doxytag: member="log4cpp::FixedContextCategory::_logUnconditionally2" ref="abd251a7a6198fb8235defeeefa9d0ed" args="(Priority::Value priority, const std::string &amp;message)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void log4cpp::FixedContextCategory::_logUnconditionally2           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a>&nbsp;</td>
          <td class="paramname"> <em>priority</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&nbsp;</td>
          <td class="paramname"> <em>message</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%">  throw ()<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Unconditionally log a message with the specified priority. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>priority</em>&nbsp;</td><td>The priority of this log message. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>message</em>&nbsp;</td><td>string to write in the log file </td></tr>
  </table>
</dl>

<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1Category.html#77265549183a4f2fc9ecea8da5aec8b4">log4cpp::Category</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="FixedContextCategory_8hh-source.html">FixedContextCategory.hh</a><li><a class="el" href="FixedContextCategory_8cpp.html">FixedContextCategory.cpp</a></ul>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Sep 3 11:55:04 2007 for log4cpp by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.2 </small></address>
</body>
</html>