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
|
<!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::Appender 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 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 Pages</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="nav">
<a class="el" href="namespacelog4cpp.html">log4cpp</a>::<a class="el" href="classlog4cpp_1_1Appender.html">Appender</a></div>
<h1>log4cpp::Appender Class Reference</h1><!-- doxytag: class="log4cpp::Appender" -->Implement this interface for your own strategies for printing log statements.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="Appender_8hh-source.html">Appender.hh</a>></code>
<p>
Inheritance diagram for log4cpp::Appender:<p><center><img src="classlog4cpp_1_1Appender__inherit__graph.gif" border="0" usemap="#log4cpp_1_1Appender__inherit__map" alt="Inheritance graph"></center>
<map name="log4cpp_1_1Appender__inherit__map">
<area shape="rect" href="classlog4cpp_1_1AppenderSkeleton.html" title="AppenderSkeleton is a helper class, simplifying implementation of Appenders: it already..." alt="" coords="492,80,663,107"><area shape="rect" href="classlog4cpp_1_1AbortAppender.html" title="This Appender causes the application to abort() upon the first append() call." alt="" coords="236,155,391,181"><area shape="rect" href="classlog4cpp_1_1IdsaAppender.html" title="IdsaAppender is an Appender that sends LoggingEvents to the IDS/A logger and reference..." alt="" coords="415,155,561,181"><area shape="rect" href="classlog4cpp_1_1LayoutAppender.html" title="LayoutAppender is a common superclass for all Appenders that require a Layout." alt="" coords="585,155,748,181"><area shape="rect" href="classlog4cpp_1_1NTEventLogAppender.html" title="NTEventLogAppender is an Appender that sends LoggingEvents to the Windows event log..." alt="" coords="772,155,967,181"><area shape="rect" href="classlog4cpp_1_1BufferingAppender.html" title="log4cpp::BufferingAppender" alt="" coords="5,229,181,256"><area shape="rect" href="classlog4cpp_1_1FileAppender.html" title="log4cpp::FileAppender" alt="" coords="205,229,349,256"><area shape="rect" href="classlog4cpp_1_1OstreamAppender.html" title="OstreamAppender appends LoggingEvents to ostreams." alt="" coords="373,229,541,256"><area shape="rect" href="classlog4cpp_1_1RemoteSyslogAppender.html" title="RemoteSyslogAppender sends LoggingEvents to a remote syslog system." alt="" coords="565,229,768,256"><area shape="rect" href="classlog4cpp_1_1StringQueueAppender.html" title="This class puts log messages in an in-memory queue." alt="" coords="792,229,984,256"><area shape="rect" href="classlog4cpp_1_1SyslogAppender.html" title="SyslogAppender sends LoggingEvents to the local syslog system." alt="" coords="1008,229,1168,256"><area shape="rect" href="classlog4cpp_1_1Win32DebugAppender.html" title="Win32DebugAppender simply sends the log message to the default system debugger on..." alt="" coords="1192,229,1387,256"><area shape="rect" href="classlog4cpp_1_1RollingFileAppender.html" title="RollingFileAppender is a FileAppender that rolls over the logfile once it has reached..." alt="" coords="185,304,369,331"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for log4cpp::Appender:<p><center><img src="classlog4cpp_1_1Appender__coll__graph.gif" border="0" usemap="#log4cpp_1_1Appender__coll__map" alt="Collaboration graph"></center>
<map name="log4cpp_1_1Appender__coll__map">
<area shape="rect" href="classlog4cpp_1_1threading_1_1Mutex.html" title="log4cpp::threading::Mutex" alt="" coords="5,5,168,32"><area shape="rect" title="_appenderMapMutex" alt="" coords="83,28,91,36"><area shape="rect" title="_appenderMapMutex" alt="" coords="83,92,91,100"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classlog4cpp_1_1Appender-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">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#ca08016a32ae4bca095d7629bdd2c7f4">~Appender</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor for <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. <a href="#ca08016a32ae4bca095d7629bdd2c7f4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#d867da8a98bfee7e7aa9ade86044a1d6">doAppend</a> (const <a class="el" href="structlog4cpp_1_1LoggingEvent.html">LoggingEvent</a> &event)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Log in <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> specific way. <a href="#d867da8a98bfee7e7aa9ade86044a1d6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#871a9ce1d8a3df62713fdb96e7a89788">reopen</a> ()=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Reopens the output destination of this <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>, e.g. <a href="#871a9ce1d8a3df62713fdb96e7a89788"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#099f23b51c06a0fa13a9e15da05d156f">close</a> ()=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Release any resources allocated within the appender such as file handles, network connections, etc. <a href="#099f23b51c06a0fa13a9e15da05d156f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#68c69b52e66ebe9d2c1e2f60766d6182">requiresLayout</a> () const=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Check if the appender uses a layout. <a href="#68c69b52e66ebe9d2c1e2f60766d6182"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#1441643bec0395e206106c26424f123e">setLayout</a> (<a class="el" href="classlog4cpp_1_1Layout.html">Layout</a> *layout)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the <a class="el" href="classlog4cpp_1_1Layout.html" title="Extend this abstract class to create your own log layout format.">Layout</a> for this appender. <a href="#1441643bec0395e206106c26424f123e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const std::string & </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#bdfb58d8f09ded61e744b07729cc0399">getName</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the name of this appender. <a href="#bdfb58d8f09ded61e744b07729cc0399"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#fdd2104b7b67038d2641e286cb6663a4">setThreshold</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set the threshold priority of this <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. <a href="#fdd2104b7b67038d2641e286cb6663a4"></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> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#4c9bd82f6c58f4c57cb97b6abda6d4ce">getThreshold</a> ()=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the threshold priority of this <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. <a href="#4c9bd82f6c58f4c57cb97b6abda6d4ce"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#39430bb2b1fb1d6c4398b377a699a932">setFilter</a> (<a class="el" href="classlog4cpp_1_1Filter.html">Filter</a> *filter)=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Set a <a class="el" href="classlog4cpp_1_1Filter.html" title="Users should extend this class to implement customized logging event filtering.">Filter</a> for this appender. <a href="#39430bb2b1fb1d6c4398b377a699a932"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classlog4cpp_1_1Filter.html">Filter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#53f4ff3295465c1691cb8095cd0a558c">getFilter</a> ()=0</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the <a class="el" href="classlog4cpp_1_1Filter.html" title="Users should extend this class to implement customized logging event filtering.">Filter</a> for this appender. <a href="#53f4ff3295465c1691cb8095cd0a558c"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#933b016253c08a3119f3f6fa0e461beb">getAppender</a> (const std::string &name)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get a pointer to an exitsing <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. <a href="#933b016253c08a3119f3f6fa0e461beb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#8d8ba88107acaa494e0cd8e0b9646a75">reopenAll</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Call <a class="el" href="classlog4cpp_1_1Appender.html#871a9ce1d8a3df62713fdb96e7a89788" title="Reopens the output destination of this Appender, e.g.">reopen()</a> on all existing Appenders. <a href="#8d8ba88107acaa494e0cd8e0b9646a75"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#8a557128dd797c0adf064bde7b04bd79">closeAll</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Call <a class="el" href="classlog4cpp_1_1Appender.html#871a9ce1d8a3df62713fdb96e7a89788" title="Reopens the output destination of this Appender, e.g.">reopen()</a> on all existing Appenders. <a href="#8a557128dd797c0adf064bde7b04bd79"></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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1Appender.html#a24aaeed07c73719e64109634bc62e7a">Appender</a> (const std::string &name)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor for <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. <a href="#a24aaeed07c73719e64109634bc62e7a"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Implement this interface for your own strategies for printing log statements.
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="a24aaeed07c73719e64109634bc62e7a"></a><!-- doxytag: member="log4cpp::Appender::Appender" ref="a24aaeed07c73719e64109634bc62e7a" args="(const std::string &name)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">log4cpp::Appender::Appender </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>name</em> </td>
<td> ) </td>
<td width="100%"><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Constructor for <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>.
<p>
Will only be used in <a class="el" href="classlog4cpp_1_1Appender.html#933b016253c08a3119f3f6fa0e461beb" title="Get a pointer to an exitsing Appender.">getAppender()</a> (and in derived classes of course). <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> </td><td>The name of this <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="ca08016a32ae4bca095d7629bdd2c7f4"></a><!-- doxytag: member="log4cpp::Appender::~Appender" ref="ca08016a32ae4bca095d7629bdd2c7f4" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">log4cpp::Appender::~Appender </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Destructor for <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>.
<p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="933b016253c08a3119f3f6fa0e461beb"></a><!-- doxytag: member="log4cpp::Appender::getAppender" ref="933b016253c08a3119f3f6fa0e461beb" args="(const std::string &name)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classlog4cpp_1_1Appender.html">Appender</a> * log4cpp::Appender::getAppender </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>name</em> </td>
<td> ) </td>
<td width="100%"><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Get a pointer to an exitsing <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</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>name</em> </td><td>The name of the <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> to return. </td></tr>
</table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>a pointer to an existing <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>, or NULL if no appender with the specfied name exists. </dd></dl>
</div>
</div><p>
<a class="anchor" name="8d8ba88107acaa494e0cd8e0b9646a75"></a><!-- doxytag: member="log4cpp::Appender::reopenAll" ref="8d8ba88107acaa494e0cd8e0b9646a75" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool log4cpp::Appender::reopenAll </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Call <a class="el" href="classlog4cpp_1_1Appender.html#871a9ce1d8a3df62713fdb96e7a89788" title="Reopens the output destination of this Appender, e.g.">reopen()</a> on all existing Appenders.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if all Appenders returned true on their <a class="el" href="classlog4cpp_1_1Appender.html#871a9ce1d8a3df62713fdb96e7a89788" title="Reopens the output destination of this Appender, e.g.">reopen()</a> call. </dd></dl>
</div>
</div><p>
<a class="anchor" name="8a557128dd797c0adf064bde7b04bd79"></a><!-- doxytag: member="log4cpp::Appender::closeAll" ref="8a557128dd797c0adf064bde7b04bd79" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void log4cpp::Appender::closeAll </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Call <a class="el" href="classlog4cpp_1_1Appender.html#871a9ce1d8a3df62713fdb96e7a89788" title="Reopens the output destination of this Appender, e.g.">reopen()</a> on all existing Appenders.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if all Appenders returned true on their <a class="el" href="classlog4cpp_1_1Appender.html#871a9ce1d8a3df62713fdb96e7a89788" title="Reopens the output destination of this Appender, e.g.">reopen()</a> call. </dd></dl>
</div>
</div><p>
<a class="anchor" name="d867da8a98bfee7e7aa9ade86044a1d6"></a><!-- doxytag: member="log4cpp::Appender::doAppend" ref="d867da8a98bfee7e7aa9ade86044a1d6" args="(const LoggingEvent &event)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void log4cpp::Appender::doAppend </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structlog4cpp_1_1LoggingEvent.html">LoggingEvent</a> & </td>
<td class="paramname"> <em>event</em> </td>
<td> ) </td>
<td width="100%"><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Log in <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> specific way.
<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> </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>
Implemented in <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#65d7e244dc5839a59708165ee354c34a">log4cpp::AppenderSkeleton</a>.
</div>
</div><p>
<a class="anchor" name="871a9ce1d8a3df62713fdb96e7a89788"></a><!-- doxytag: member="log4cpp::Appender::reopen" ref="871a9ce1d8a3df62713fdb96e7a89788" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool log4cpp::Appender::reopen </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Reopens the output destination of this <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>, e.g.
<p>
the logfile or TCP socket. <dl class="return" compact><dt><b>Returns:</b></dt><dd>false if an error occured during reopening, true otherwise. </dd></dl>
<p>
Implemented in <a class="el" href="classlog4cpp_1_1AbortAppender.html#bdc954ee11e448f441d116c58e6f4332">log4cpp::AbortAppender</a>, <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#1f61281caac83409db298b681635e029">log4cpp::AppenderSkeleton</a>, <a class="el" href="classlog4cpp_1_1FileAppender.html#dc5a6091d98e5aee1cb990e9fedaf946">log4cpp::FileAppender</a>, <a class="el" href="classlog4cpp_1_1IdsaAppender.html#172e815c9302281f3248d95a5bfa73d6">log4cpp::IdsaAppender</a>, <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#3a32bf3a45c37c7d9caa4b6997e0a79c">log4cpp::NTEventLogAppender</a>, <a class="el" href="classlog4cpp_1_1OstreamAppender.html#283e524fdb7eab911c273b20619b09dd">log4cpp::OstreamAppender</a>, <a class="el" href="classlog4cpp_1_1RemoteSyslogAppender.html#499b6b3a7052860d8ac582492d8f51d7">log4cpp::RemoteSyslogAppender</a>, <a class="el" href="classlog4cpp_1_1StringQueueAppender.html#e666ab5d75d3a7feb80e281ce6a4844b">log4cpp::StringQueueAppender</a>, and <a class="el" href="classlog4cpp_1_1SyslogAppender.html#85b701a0503050eabd5cca763bbf0b0c">log4cpp::SyslogAppender</a>.
</div>
</div><p>
<a class="anchor" name="099f23b51c06a0fa13a9e15da05d156f"></a><!-- doxytag: member="log4cpp::Appender::close" ref="099f23b51c06a0fa13a9e15da05d156f" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void log4cpp::Appender::close </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Release any resources allocated within the appender such as file handles, network connections, etc.
<p>
<p>
Implemented in <a class="el" href="classlog4cpp_1_1AbortAppender.html#c702ba090f6863d540fc1d27047e9300">log4cpp::AbortAppender</a>, <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#c62f94c6692fd146fcf37455d3e73439">log4cpp::AppenderSkeleton</a>, <a class="el" href="classlog4cpp_1_1BufferingAppender.html#98235e5bb50c2bf509d29626affdafc5">log4cpp::BufferingAppender</a>, <a class="el" href="classlog4cpp_1_1FileAppender.html#b76d4e1ff38513f30e83d19df6069e99">log4cpp::FileAppender</a>, <a class="el" href="classlog4cpp_1_1IdsaAppender.html#135ad229b96bbdb9a34ea898cb317246">log4cpp::IdsaAppender</a>, <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#1698efc63fa84455b0bd1c6b5a42a0f8">log4cpp::NTEventLogAppender</a>, <a class="el" href="classlog4cpp_1_1OstreamAppender.html#6eca1004256920485cbc51fc0e8a7ac2">log4cpp::OstreamAppender</a>, <a class="el" href="classlog4cpp_1_1RemoteSyslogAppender.html#61b6d2ff5c3b99714e57ce3569ff0e52">log4cpp::RemoteSyslogAppender</a>, <a class="el" href="classlog4cpp_1_1StringQueueAppender.html#5a00a484e9476692f3e1378e3630c3ab">log4cpp::StringQueueAppender</a>, <a class="el" href="classlog4cpp_1_1SyslogAppender.html#add9fc06a928ae8f25a935217dda3aac">log4cpp::SyslogAppender</a>, and <a class="el" href="classlog4cpp_1_1Win32DebugAppender.html#ba78360b0f6b186ecca8496ac055348f">log4cpp::Win32DebugAppender</a>.
</div>
</div><p>
<a class="anchor" name="68c69b52e66ebe9d2c1e2f60766d6182"></a><!-- doxytag: member="log4cpp::Appender::requiresLayout" ref="68c69b52e66ebe9d2c1e2f60766d6182" args="() const=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual bool log4cpp::Appender::requiresLayout </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const<code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Check if the appender uses a layout.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if the appender implementation requires a layout. </dd></dl>
<p>
Implemented in <a class="el" href="classlog4cpp_1_1AbortAppender.html#e814b7c2045a5e58bf751caf25a38fbe">log4cpp::AbortAppender</a>, <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#2c56b0118614086644df4cd37408ca02">log4cpp::AppenderSkeleton</a>, <a class="el" href="classlog4cpp_1_1IdsaAppender.html#a18224bdc97c490237ccf7219637fd76">log4cpp::IdsaAppender</a>, <a class="el" href="classlog4cpp_1_1LayoutAppender.html#0c14651f4d6a734619034701904783c0">log4cpp::LayoutAppender</a>, and <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#0b7137f2fee5ebcab0302e39d9162c5a">log4cpp::NTEventLogAppender</a>.
</div>
</div><p>
<a class="anchor" name="1441643bec0395e206106c26424f123e"></a><!-- doxytag: member="log4cpp::Appender::setLayout" ref="1441643bec0395e206106c26424f123e" args="(Layout *layout)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void log4cpp::Appender::setLayout </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classlog4cpp_1_1Layout.html">Layout</a> * </td>
<td class="paramname"> <em>layout</em> </td>
<td> ) </td>
<td width="100%"><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Set the <a class="el" href="classlog4cpp_1_1Layout.html" title="Extend this abstract class to create your own log layout format.">Layout</a> for this appender.
<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>layout</em> </td><td>The layout to use. </td></tr>
</table>
</dl>
<p>
Implemented in <a class="el" href="classlog4cpp_1_1AbortAppender.html#1a2a7c90fdf181927d7fe20dc86fc3de">log4cpp::AbortAppender</a>, <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#5d1136572a006239935c4264beb07065">log4cpp::AppenderSkeleton</a>, <a class="el" href="classlog4cpp_1_1IdsaAppender.html#87ee94d1def5322bda4749c3880cca49">log4cpp::IdsaAppender</a>, <a class="el" href="classlog4cpp_1_1LayoutAppender.html#a12073260a58276f9f43a75cb7b93b68">log4cpp::LayoutAppender</a>, and <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#4223739ba7ff0ae8a06bb2bea6794541">log4cpp::NTEventLogAppender</a>.
</div>
</div><p>
<a class="anchor" name="bdfb58d8f09ded61e744b07729cc0399"></a><!-- doxytag: member="log4cpp::Appender::getName" ref="bdfb58d8f09ded61e744b07729cc0399" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const std::string& log4cpp::Appender::getName </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Get the name of this appender.
<p>
The name identifies the appender. <dl class="return" compact><dt><b>Returns:</b></dt><dd>the name of the appender. </dd></dl>
</div>
</div><p>
<a class="anchor" name="fdd2104b7b67038d2641e286cb6663a4"></a><!-- doxytag: member="log4cpp::Appender::setThreshold" ref="fdd2104b7b67038d2641e286cb6663a4" args="(Priority::Value priority)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void log4cpp::Appender::setThreshold </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> </td>
<td class="paramname"> <em>priority</em> </td>
<td> ) </td>
<td width="100%"><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Set the threshold priority of this <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>.
<p>
The <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> will not appender LoggingEvents with a priority lower than the threshold. Use <a class="el" href="classlog4cpp_1_1Priority.html#e1b1901a7b2bea8190b286684eecc1afebdf006bbefb65f1d654594992ac4e4f">Priority::NOTSET</a> to disable threshold checking. <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> </td><td>The priority to set. </td></tr>
</table>
</dl>
<p>
Implemented in <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#8f50959239bc9cfd6d32b4522897b904">log4cpp::AppenderSkeleton</a>.
</div>
</div><p>
<a class="anchor" name="4c9bd82f6c58f4c57cb97b6abda6d4ce"></a><!-- doxytag: member="log4cpp::Appender::getThreshold" ref="4c9bd82f6c58f4c57cb97b6abda6d4ce" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> log4cpp::Appender::getThreshold </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Get the threshold priority of this <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a>.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the threshold </dd></dl>
<p>
Implemented in <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#8bcc50c73bdfe29255b66445f32f27be">log4cpp::AppenderSkeleton</a>.
</div>
</div><p>
<a class="anchor" name="39430bb2b1fb1d6c4398b377a699a932"></a><!-- doxytag: member="log4cpp::Appender::setFilter" ref="39430bb2b1fb1d6c4398b377a699a932" args="(Filter *filter)=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual void log4cpp::Appender::setFilter </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classlog4cpp_1_1Filter.html">Filter</a> * </td>
<td class="paramname"> <em>filter</em> </td>
<td> ) </td>
<td width="100%"><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Set a <a class="el" href="classlog4cpp_1_1Filter.html" title="Users should extend this class to implement customized logging event filtering.">Filter</a> for this appender.
<p>
<p>
Implemented in <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#ae9c4841aa5558161ea77d8306e40e92">log4cpp::AppenderSkeleton</a>.
</div>
</div><p>
<a class="anchor" name="53f4ff3295465c1691cb8095cd0a558c"></a><!-- doxytag: member="log4cpp::Appender::getFilter" ref="53f4ff3295465c1691cb8095cd0a558c" args="()=0" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual <a class="el" href="classlog4cpp_1_1Filter.html">Filter</a>* log4cpp::Appender::getFilter </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [pure virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Get the <a class="el" href="classlog4cpp_1_1Filter.html" title="Users should extend this class to implement customized logging event filtering.">Filter</a> for this appender.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the filter, or NULL if no filter has been set. </dd></dl>
<p>
Implemented in <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#d073e3d9c2b68d5fc2341de9b0242114">log4cpp::AppenderSkeleton</a>.
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="Appender_8hh-source.html">Appender.hh</a><li><a class="el" href="Appender_8cpp.html">Appender.cpp</a></ul>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Sep 3 11:55:03 2007 for log4cpp by
<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>
|