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
|
<!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::NTEventLogAppender 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_1NTEventLogAppender.html">NTEventLogAppender</a></div>
<h1>log4cpp::NTEventLogAppender Class Reference</h1><!-- doxytag: class="log4cpp::NTEventLogAppender" --><!-- doxytag: inherits="log4cpp::AppenderSkeleton" --><a class="el" href="classlog4cpp_1_1NTEventLogAppender.html" title="NTEventLogAppender is an Appender that sends LoggingEvents to the Windows event log...">NTEventLogAppender</a> is an <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> that sends LoggingEvents to the Windows event log.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="NTEventLogAppender_8hh-source.html">NTEventLogAppender.hh</a>></code>
<p>
Inheritance diagram for log4cpp::NTEventLogAppender:<p><center><img src="classlog4cpp_1_1NTEventLogAppender__inherit__graph.gif" border="0" usemap="#log4cpp_1_1NTEventLogAppender__inherit__map" alt="Inheritance graph"></center>
<map name="log4cpp_1_1NTEventLogAppender__inherit__map">
<area shape="rect" href="classlog4cpp_1_1AppenderSkeleton.html" title="AppenderSkeleton is a helper class, simplifying implementation of Appenders: it already..." alt="" coords="17,80,188,107"><area shape="rect" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements." alt="" coords="41,5,164,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for log4cpp::NTEventLogAppender:<p><center><img src="classlog4cpp_1_1NTEventLogAppender__coll__graph.gif" border="0" usemap="#log4cpp_1_1NTEventLogAppender__coll__map" alt="Collaboration graph"></center>
<map name="log4cpp_1_1NTEventLogAppender__coll__map">
<area shape="rect" href="classlog4cpp_1_1AppenderSkeleton.html" title="AppenderSkeleton is a helper class, simplifying implementation of Appenders: it already..." alt="" coords="68,187,239,213"><area shape="rect" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements." alt="" coords="25,96,148,123"><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"><area shape="rect" href="classlog4cpp_1_1Filter.html" title="Users should extend this class to implement customized logging event filtering." alt="" coords="172,96,271,123"><area shape="rect" title="_filter" alt="" coords="207,119,215,127"><area shape="rect" title="_filter" alt="" coords="159,183,167,191"><area shape="rect" title="_chainedFilter" alt="" coords="241,92,249,100"><area shape="rect" title="_chainedFilter" alt="" coords="241,119,249,127"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classlog4cpp_1_1NTEventLogAppender-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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#719ea3ec43d8fc592be0ceb4c3e3454f">NTEventLogAppender</a> (const std::string &name, const std::string &sourceName)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Instantiate an <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html" title="NTEventLogAppender is an Appender that sends LoggingEvents to the Windows event log...">NTEventLogAppender</a> with given name and source. <a href="#719ea3ec43d8fc592be0ceb4c3e3454f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#3d3147e6b01858cda740fc792a4c5d2b">~NTEventLogAppender</a> ()</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_1NTEventLogAppender.html#3a32bf3a45c37c7d9caa4b6997e0a79c">reopen</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Calls <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#09030ec49e41d271c57f2b7ddbbc7692">open()</a> and <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#1698efc63fa84455b0bd1c6b5a42a0f8" title="Release any resources allocated within the appender such as file handles, network...">close()</a>. <a href="#3a32bf3a45c37c7d9caa4b6997e0a79c"></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_1NTEventLogAppender.html#1698efc63fa84455b0bd1c6b5a42a0f8">close</a> ()</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="#1698efc63fa84455b0bd1c6b5a42a0f8"></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_1NTEventLogAppender.html#0b7137f2fee5ebcab0302e39d9162c5a">requiresLayout</a> () const</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html" title="NTEventLogAppender is an Appender that sends LoggingEvents to the Windows event log...">NTEventLogAppender</a> does its own <a class="el" href="classlog4cpp_1_1Layout.html" title="Extend this abstract class to create your own log layout format.">Layout</a>. <a href="#0b7137f2fee5ebcab0302e39d9162c5a"></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_1NTEventLogAppender.html#4223739ba7ff0ae8a06bb2bea6794541">setLayout</a> (<a class="el" href="classlog4cpp_1_1Layout.html">Layout</a> *layout)</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="#4223739ba7ff0ae8a06bb2bea6794541"></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">WORD </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#b81c23af6eecc7bc7be32668240a59aa">getCategory</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert <a class="el" href="namespacelog4cpp.html" title="The top level namespace for all 'Log for C++' types and classes.">log4cpp</a> <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a> to an EventLog category. <a href="#b81c23af6eecc7bc7be32668240a59aa"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">WORD </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#1aeb447f724acfe984c54ca12a2608be">getType</a> (<a class="el" href="classlog4cpp_1_1Priority.html#19c2e47a94a531d3028f7c545671ff72">Priority::Value</a> priority)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Convert <a class="el" href="namespacelog4cpp.html" title="The top level namespace for all 'Log for C++' types and classes.">log4cpp</a> <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a> to an EventLog type. <a href="#1aeb447f724acfe984c54ca12a2608be"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">HKEY </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#34bb0894169a197daa1dfc580920e17e">regGetKey</a> (TCHAR *subkey, DWORD *disposition)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#76b638d5d24ab8e5debd3a439fe0b902">regSetString</a> (HKEY hkey, TCHAR *name, TCHAR *value)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#087e966e2a4afa828c1fed2df763ee7a">regSetDword</a> (HKEY hkey, TCHAR *name, DWORD value)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#b78f6dc97760e3416ef76e62fde1e011">addRegistryInfo</a> (const char *source)</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_1NTEventLogAppender.html#09030ec49e41d271c57f2b7ddbbc7692">open</a> ()</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_1NTEventLogAppender.html#8bf051479f15eb79bcfdca9d89882188">_append</a> (const <a class="el" href="structlog4cpp_1_1LoggingEvent.html">LoggingEvent</a> &event)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sends a <a class="el" href="structlog4cpp_1_1LoggingEvent.html" title="The internal representation of logging events.">LoggingEvent</a> to NT Event log. <a href="#8bf051479f15eb79bcfdca9d89882188"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">HANDLE </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#a32c84e5f90fe370ed5c241e1e11172b">_hEventSource</a></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#c7076f736c0cd32115aafa005f487807">_strSourceName</a></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="classlog4cpp_1_1NTEventLogAppender.html" title="NTEventLogAppender is an Appender that sends LoggingEvents to the Windows event log...">NTEventLogAppender</a> is an <a class="el" href="classlog4cpp_1_1Appender.html" title="Implement this interface for your own strategies for printing log statements.">Appender</a> that sends LoggingEvents to the Windows event log.
<p>
Building log4cpp.dsp/log4cppDLL.dsp creates the resource DLL NTEventLogAppender.dll. Do not forget to place this DLL in a directory that is on the PATH of the Windows system. Otherwise, the category and message will not display correctly in Event Viewer.<br>
<b>NB:</b> This class is only available on Win32 platforms.
<p>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="719ea3ec43d8fc592be0ceb4c3e3454f"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::NTEventLogAppender" ref="719ea3ec43d8fc592be0ceb4c3e3454f" args="(const std::string &name, const std::string &sourceName)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">log4cpp::NTEventLogAppender::NTEventLogAppender </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>sourceName</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Instantiate an <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html" title="NTEventLogAppender is an Appender that sends LoggingEvents to the Windows event log...">NTEventLogAppender</a> with given name and source.
<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> </td></tr>
<tr><td valign="top"></td><td valign="top"><em>sourceName</em> </td><td>The source name to log </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="3d3147e6b01858cda740fc792a4c5d2b"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::~NTEventLogAppender" ref="3d3147e6b01858cda740fc792a4c5d2b" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">log4cpp::NTEventLogAppender::~NTEventLogAppender </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="3a32bf3a45c37c7d9caa4b6997e0a79c"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::reopen" ref="3a32bf3a45c37c7d9caa4b6997e0a79c" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool log4cpp::NTEventLogAppender::reopen </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Calls <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#09030ec49e41d271c57f2b7ddbbc7692">open()</a> and <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#1698efc63fa84455b0bd1c6b5a42a0f8" title="Release any resources allocated within the appender such as file handles, network...">close()</a>.
<p>
<p>
Reimplemented from <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#1f61281caac83409db298b681635e029">log4cpp::AppenderSkeleton</a>.
</div>
</div><p>
<a class="anchor" name="1698efc63fa84455b0bd1c6b5a42a0f8"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::close" ref="1698efc63fa84455b0bd1c6b5a42a0f8" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void log4cpp::NTEventLogAppender::close </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [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>
Implements <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#c62f94c6692fd146fcf37455d3e73439">log4cpp::AppenderSkeleton</a>.
</div>
</div><p>
<a class="anchor" name="0b7137f2fee5ebcab0302e39d9162c5a"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::requiresLayout" ref="0b7137f2fee5ebcab0302e39d9162c5a" args="() const" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool log4cpp::NTEventLogAppender::requiresLayout </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
The <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html" title="NTEventLogAppender is an Appender that sends LoggingEvents to the Windows event log...">NTEventLogAppender</a> does its own <a class="el" href="classlog4cpp_1_1Layout.html" title="Extend this abstract class to create your own log layout format.">Layout</a>.
<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>false </dd></dl>
<p>
Implements <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#2c56b0118614086644df4cd37408ca02">log4cpp::AppenderSkeleton</a>.
</div>
</div><p>
<a class="anchor" name="4223739ba7ff0ae8a06bb2bea6794541"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::setLayout" ref="4223739ba7ff0ae8a06bb2bea6794541" args="(Layout *layout)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void log4cpp::NTEventLogAppender::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> [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>
Implements <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#5d1136572a006239935c4264beb07065">log4cpp::AppenderSkeleton</a>.
</div>
</div><p>
<a class="anchor" name="b81c23af6eecc7bc7be32668240a59aa"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::getCategory" ref="b81c23af6eecc7bc7be32668240a59aa" args="(Priority::Value priority)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">WORD log4cpp::NTEventLogAppender::getCategory </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> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Convert <a class="el" href="namespacelog4cpp.html" title="The top level namespace for all 'Log for C++' types and classes.">log4cpp</a> <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a> to an EventLog category.
<p>
Each category is backed by a message resource so that proper category names will be displayed in the NT Event Viewer.
</div>
</div><p>
<a class="anchor" name="1aeb447f724acfe984c54ca12a2608be"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::getType" ref="1aeb447f724acfe984c54ca12a2608be" args="(Priority::Value priority)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">WORD log4cpp::NTEventLogAppender::getType </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> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Convert <a class="el" href="namespacelog4cpp.html" title="The top level namespace for all 'Log for C++' types and classes.">log4cpp</a> <a class="el" href="classlog4cpp_1_1Priority.html" title="The Priority class provides importance levels with which one can categorize log messages...">Priority</a> to an EventLog type.
<p>
The <a class="el" href="namespacelog4cpp.html" title="The top level namespace for all 'Log for C++' types and classes.">log4cpp</a> package supports 8 defined priorites, but the NT EventLog only knows 3 event types of interest to us: ERROR, WARNING, and INFO.
</div>
</div><p>
<a class="anchor" name="34bb0894169a197daa1dfc580920e17e"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::regGetKey" ref="34bb0894169a197daa1dfc580920e17e" args="(TCHAR *subkey, DWORD *disposition)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HKEY log4cpp::NTEventLogAppender::regGetKey </td>
<td>(</td>
<td class="paramtype">TCHAR * </td>
<td class="paramname"> <em>subkey</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">DWORD * </td>
<td class="paramname"> <em>disposition</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="76b638d5d24ab8e5debd3a439fe0b902"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::regSetString" ref="76b638d5d24ab8e5debd3a439fe0b902" args="(HKEY hkey, TCHAR *name, TCHAR *value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void log4cpp::NTEventLogAppender::regSetString </td>
<td>(</td>
<td class="paramtype">HKEY </td>
<td class="paramname"> <em>hkey</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">TCHAR * </td>
<td class="paramname"> <em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">TCHAR * </td>
<td class="paramname"> <em>value</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="087e966e2a4afa828c1fed2df763ee7a"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::regSetDword" ref="087e966e2a4afa828c1fed2df763ee7a" args="(HKEY hkey, TCHAR *name, DWORD value)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void log4cpp::NTEventLogAppender::regSetDword </td>
<td>(</td>
<td class="paramtype">HKEY </td>
<td class="paramname"> <em>hkey</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">TCHAR * </td>
<td class="paramname"> <em>name</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">DWORD </td>
<td class="paramname"> <em>value</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td width="100%"><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="b78f6dc97760e3416ef76e62fde1e011"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::addRegistryInfo" ref="b78f6dc97760e3416ef76e62fde1e011" args="(const char *source)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void log4cpp::NTEventLogAppender::addRegistryInfo </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"> <em>source</em> </td>
<td> ) </td>
<td width="100%"><code> [protected]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="09030ec49e41d271c57f2b7ddbbc7692"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::open" ref="09030ec49e41d271c57f2b7ddbbc7692" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void log4cpp::NTEventLogAppender::open </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td width="100%"><code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="8bf051479f15eb79bcfdca9d89882188"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::_append" ref="8bf051479f15eb79bcfdca9d89882188" args="(const LoggingEvent &event)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void log4cpp::NTEventLogAppender::_append </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> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sends a <a class="el" href="structlog4cpp_1_1LoggingEvent.html" title="The internal representation of logging events.">LoggingEvent</a> to NT Event log.
<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>
Implements <a class="el" href="classlog4cpp_1_1AppenderSkeleton.html#643fb2614192ea09b502a3feb27abe66">log4cpp::AppenderSkeleton</a>.
</div>
</div><p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="a32c84e5f90fe370ed5c241e1e11172b"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::_hEventSource" ref="a32c84e5f90fe370ed5c241e1e11172b" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">HANDLE <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#a32c84e5f90fe370ed5c241e1e11172b">log4cpp::NTEventLogAppender::_hEventSource</a><code> [protected]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="c7076f736c0cd32115aafa005f487807"></a><!-- doxytag: member="log4cpp::NTEventLogAppender::_strSourceName" ref="c7076f736c0cd32115aafa005f487807" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string <a class="el" href="classlog4cpp_1_1NTEventLogAppender.html#c7076f736c0cd32115aafa005f487807">log4cpp::NTEventLogAppender::_strSourceName</a><code> [protected]</code> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="NTEventLogAppender_8hh-source.html">NTEventLogAppender.hh</a><li><a class="el" href="NTEventLogAppender_8cpp.html">NTEventLogAppender.cpp</a></ul>
<hr size="1"><address style="text-align: right;"><small>Generated on Mon Sep 3 11:55:05 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>
|