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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Apache log4cxx: TTCCLayout 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.4.6 -->
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
<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="namespacelog4cxx.html">log4cxx</a>::<a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html">TTCCLayout</a></div>
<h1>TTCCLayout Class Reference</h1><!-- doxytag: class="log4cxx::TTCCLayout" --><!-- doxytag: inherits="log4cxx::helpers::DateLayout" -->Inherits <a class="el" href="classlog4cxx_1_1helpers_1_1_date_layout.html">DateLayout</a>.
<p>
<a href="classlog4cxx_1_1_t_t_c_c_layout-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
TTCC layout format consists of time, thread, logger name and nested diagnostic context information, hence the name.
<p>
Each of the four fields can be individually enabled or disabled. The time format depends on the <code>DateFormat</code> used.<p>
Here is an example <a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html">TTCCLayout</a> output with the <a class="el" href="classlog4cxx_1_1helpers_1_1_relative_time_date_format.html">RelativeTimeDateFormat</a>.<p>
<pre>
176 [main] INFO examples.Sort - Populating an array of 2 elements in reverse order.
225 [main] INFO examples.SortAlgo - Entered the sort method.
262 [main] DEBUG examples.SortAlgo.OUTER i=1 - Outer loop.
276 [main] DEBUG examples.SortAlgo.SWAP i=1 j=0 - Swapping intArray[0] = 1 and intArray[1] = 0
290 [main] DEBUG examples.SortAlgo.OUTER i=0 - Outer loop.
304 [main] INFO examples.SortAlgo.DUMP - Dump of interger array:
317 [main] INFO examples.SortAlgo.DUMP - Element [0] = 0
331 [main] INFO examples.SortAlgo.DUMP - Element [1] = 1
343 [main] INFO examples.Sort - The next log statement should be an error message.
346 [main] ERROR examples.SortAlgo.DUMP - Tried to dump an uninitialized array.
467 [main] INFO examples.Sort - Exiting main method.
</pre><p>
The first field is the number of milliseconds elapsed since the start of the program. The second field is the thread outputting the log statement. The third field is the level, the fourth field is the logger to which the statement belongs.<p>
The fifth field (just before the '-') is the nested diagnostic context. Note the nested diagnostic context may be empty as in the first two statements. The text after the '-' is the message of the statement.<p>
<b>WARNING</b> Do not use the same <a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html">TTCCLayout</a> instance from within different appenders. The <a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html">TTCCLayout</a> is not thread safe when used in his way. However, it is perfectly safe to use a <a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html">TTCCLayout</a> instance from just one appender.<p>
<a class="el" href="classlog4cxx_1_1_pattern_layout.html">PatternLayout</a> offers a much more flexible alternative.
<p>
<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="classlog4cxx_1_1_t_t_c_c_layout.html#f75f9756dfa6a699cb6ba4ccb64b6221">TTCCLayout</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Instantiate a <a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html">TTCCLayout</a> object with <a class="el" href="classlog4cxx_1_1helpers_1_1_relative_time_date_format.html">RelativeTimeDateFormat</a> as the date formatter in the local time zone. <a href="#f75f9756dfa6a699cb6ba4ccb64b6221"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html#33e8daab205e6ddf7c8dadcc3e1e12ac">TTCCLayout</a> (const <a class="el" href="namespacelog4cxx.html#d7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &dateFormatType)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Instantiate a <a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html">TTCCLayout</a> object using the local time zone. <a href="#33e8daab205e6ddf7c8dadcc3e1e12ac"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html#67fa28547ba5dd45a9307b5efdaf9237">setThreadPrinting</a> (bool threadPrinting1)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The <b>ThreadPrinting</b> option specifies whether the name of the current thread is part of log output or not. <a href="#67fa28547ba5dd45a9307b5efdaf9237"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html#1ebb9cc9cb5d96d53e7a5310a0690ccd">getThreadPrinting</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns value of the <b>ThreadPrinting</b> option. <a href="#1ebb9cc9cb5d96d53e7a5310a0690ccd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html#a15d3193840f73ecb74d85a722b8c052">setCategoryPrefixing</a> (bool categoryPrefixing1)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The <b>CategoryPrefixing</b> option specifies whether <a class="el" href="classlog4cxx_1_1_logger.html">Logger</a> name is part of log output or not. <a href="#a15d3193840f73ecb74d85a722b8c052"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html#82c1fa525dc83c51d3c9a01d1843897e">getCategoryPrefixing</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns value of the <b>CategoryPrefixing</b> option. <a href="#82c1fa525dc83c51d3c9a01d1843897e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html#b84d08080b826fa6790b296a6e426da4">setContextPrinting</a> (bool contextPrinting1)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The <b>ContextPrinting</b> option specifies log output will include the nested context information belonging to the current thread. <a href="#b84d08080b826fa6790b296a6e426da4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html#290d7cadda71887e7998a289ba7c1a77">getContextPrinting</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns value of the <b>ContextPrinting</b> option. <a href="#290d7cadda71887e7998a289ba7c1a77"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html#6d37c7e54e788512256b6efb6b3a0dde">setFilePrinting</a> (bool filePrinting1)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The <b>FilePrinting</b> option specifies log output will include the file and the line where the log statement was written. <a href="#6d37c7e54e788512256b6efb6b3a0dde"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html#08fc7e62ca8dd4ad7b56c060894af0b9">getFilePrinting</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns value of the <b>ContextPrinting</b> option. <a href="#08fc7e62ca8dd4ad7b56c060894af0b9"></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="classlog4cxx_1_1_t_t_c_c_layout.html#79cba5d2db27cc6537de868018b72d9c">format</a> (<a class="el" href="namespacelog4cxx.html#d7ec98d27bca7666e23f27dd1fb181c8">LogString</a> &output, const <a class="el" href="classlog4cxx_1_1helpers_1_1_object_ptr_t.html">spi::LoggingEventPtr</a> &event, <a class="el" href="classlog4cxx_1_1helpers_1_1_pool.html">log4cxx::helpers::Pool</a> &pool) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">In addition to the level of the statement and message, this function writes to the ouput stream time, thread, logger and <a class="el" href="classlog4cxx_1_1_n_d_c.html">NDC</a> information. <a href="#79cba5d2db27cc6537de868018b72d9c"></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="classlog4cxx_1_1_t_t_c_c_layout.html#5796c8d5c4ed8ceae2cb9ebb1db75518">ignoresThrowable</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">The <a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html">TTCCLayout</a> does not handle the throwable contained within <a class="el" href="classlog4cxx_1_1spi_1_1_logging_event.html">LoggingEvents</a>. <a href="#5796c8d5c4ed8ceae2cb9ebb1db75518"></a><br></td></tr>
</table>
<hr><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" name="f75f9756dfa6a699cb6ba4ccb64b6221"></a><!-- doxytag: member="log4cxx::TTCCLayout::TTCCLayout" ref="f75f9756dfa6a699cb6ba4ccb64b6221" args="()" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html">TTCCLayout</a> </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Instantiate a <a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html">TTCCLayout</a> object with <a class="el" href="classlog4cxx_1_1helpers_1_1_relative_time_date_format.html">RelativeTimeDateFormat</a> as the date formatter in the local time zone.
<p>
</td>
</tr>
</table>
<a class="anchor" name="33e8daab205e6ddf7c8dadcc3e1e12ac"></a><!-- doxytag: member="log4cxx::TTCCLayout::TTCCLayout" ref="33e8daab205e6ddf7c8dadcc3e1e12ac" args="(const LogString &dateFormatType)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html">TTCCLayout</a> </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">const <a class="el" href="namespacelog4cxx.html#d7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td>
<td class="mdname1" valign="top" nowrap> <em>dateFormatType</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Instantiate a <a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html">TTCCLayout</a> object using the local time zone.
<p>
The DateFormat used will depend on the <code>dateFormatType</code>. <p>
This constructor just calls the <a class="el" href="classlog4cxx_1_1helpers_1_1_date_layout.html#7f7ef38b2c36b1f530a4da63458a1e54">DateLayout::setDateFormat</a> method. </td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="79cba5d2db27cc6537de868018b72d9c"></a><!-- doxytag: member="log4cxx::TTCCLayout::format" ref="79cba5d2db27cc6537de868018b72d9c" args="(LogString &output, const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &pool) const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual void format </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top"><a class="el" href="namespacelog4cxx.html#d7ec98d27bca7666e23f27dd1fb181c8">LogString</a> & </td>
<td class="mdname" nowrap> <em>output</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap>const <a class="el" href="classlog4cxx_1_1helpers_1_1_object_ptr_t.html">spi::LoggingEventPtr</a> & </td>
<td class="mdname" nowrap> <em>event</em>, </td>
</tr>
<tr>
<td class="md" nowrap align="right"></td>
<td class="md"></td>
<td class="md" nowrap><a class="el" href="classlog4cxx_1_1helpers_1_1_pool.html">log4cxx::helpers::Pool</a> & </td>
<td class="mdname" nowrap> <em>pool</em></td>
</tr>
<tr>
<td class="md"></td>
<td class="md">) </td>
<td class="md" colspan="2"> const<code> [virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
In addition to the level of the statement and message, this function writes to the ouput stream time, thread, logger and <a class="el" href="classlog4cxx_1_1_n_d_c.html">NDC</a> information.
<p>
Time, thread, logger and diagnostic context are printed depending on options.<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>output</em> </td><td>destination to receive formatted output. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>event</em> </td><td>event to format. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>pool</em> </td><td>pool used to allocate memory needed during formatting. </td></tr>
</table>
</dl>
<p>
Implements <a class="el" href="classlog4cxx_1_1_layout.html#efcaf353e4b45b21fc47b7e25410f8ff">Layout</a>. </td>
</tr>
</table>
<a class="anchor" name="82c1fa525dc83c51d3c9a01d1843897e"></a><!-- doxytag: member="log4cxx::TTCCLayout::getCategoryPrefixing" ref="82c1fa525dc83c51d3c9a01d1843897e" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool getCategoryPrefixing </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Returns value of the <b>CategoryPrefixing</b> option.
<p>
</td>
</tr>
</table>
<a class="anchor" name="290d7cadda71887e7998a289ba7c1a77"></a><!-- doxytag: member="log4cxx::TTCCLayout::getContextPrinting" ref="290d7cadda71887e7998a289ba7c1a77" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool getContextPrinting </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Returns value of the <b>ContextPrinting</b> option.
<p>
</td>
</tr>
</table>
<a class="anchor" name="08fc7e62ca8dd4ad7b56c060894af0b9"></a><!-- doxytag: member="log4cxx::TTCCLayout::getFilePrinting" ref="08fc7e62ca8dd4ad7b56c060894af0b9" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool getFilePrinting </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Returns value of the <b>ContextPrinting</b> option.
<p>
</td>
</tr>
</table>
<a class="anchor" name="1ebb9cc9cb5d96d53e7a5310a0690ccd"></a><!-- doxytag: member="log4cxx::TTCCLayout::getThreadPrinting" ref="1ebb9cc9cb5d96d53e7a5310a0690ccd" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">bool getThreadPrinting </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
Returns value of the <b>ThreadPrinting</b> option.
<p>
</td>
</tr>
</table>
<a class="anchor" name="5796c8d5c4ed8ceae2cb9ebb1db75518"></a><!-- doxytag: member="log4cxx::TTCCLayout::ignoresThrowable" ref="5796c8d5c4ed8ceae2cb9ebb1db75518" args="() const " --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">virtual bool ignoresThrowable </td>
<td class="md" valign="top">( </td>
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap> const<code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
The <a class="el" href="classlog4cxx_1_1_t_t_c_c_layout.html">TTCCLayout</a> does not handle the throwable contained within <a class="el" href="classlog4cxx_1_1spi_1_1_logging_event.html">LoggingEvents</a>.
<p>
Thus, it returns <code>true</code>.
<p>
Implements <a class="el" href="classlog4cxx_1_1_layout.html#7d46cce1553abd1ecb65fe6c5761fbd2">Layout</a>. </td>
</tr>
</table>
<a class="anchor" name="a15d3193840f73ecb74d85a722b8c052"></a><!-- doxytag: member="log4cxx::TTCCLayout::setCategoryPrefixing" ref="a15d3193840f73ecb74d85a722b8c052" args="(bool categoryPrefixing1)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void setCategoryPrefixing </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">bool </td>
<td class="mdname1" valign="top" nowrap> <em>categoryPrefixing1</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
The <b>CategoryPrefixing</b> option specifies whether <a class="el" href="classlog4cxx_1_1_logger.html">Logger</a> name is part of log output or not.
<p>
This is true by default. </td>
</tr>
</table>
<a class="anchor" name="b84d08080b826fa6790b296a6e426da4"></a><!-- doxytag: member="log4cxx::TTCCLayout::setContextPrinting" ref="b84d08080b826fa6790b296a6e426da4" args="(bool contextPrinting1)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void setContextPrinting </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">bool </td>
<td class="mdname1" valign="top" nowrap> <em>contextPrinting1</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
The <b>ContextPrinting</b> option specifies log output will include the nested context information belonging to the current thread.
<p>
This is true by default. </td>
</tr>
</table>
<a class="anchor" name="6d37c7e54e788512256b6efb6b3a0dde"></a><!-- doxytag: member="log4cxx::TTCCLayout::setFilePrinting" ref="6d37c7e54e788512256b6efb6b3a0dde" args="(bool filePrinting1)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void setFilePrinting </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">bool </td>
<td class="mdname1" valign="top" nowrap> <em>filePrinting1</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
The <b>FilePrinting</b> option specifies log output will include the file and the line where the log statement was written.
<p>
</td>
</tr>
</table>
<a class="anchor" name="67fa28547ba5dd45a9307b5efdaf9237"></a><!-- doxytag: member="log4cxx::TTCCLayout::setThreadPrinting" ref="67fa28547ba5dd45a9307b5efdaf9237" args="(bool threadPrinting1)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void setThreadPrinting </td>
<td class="md" valign="top">( </td>
<td class="md" nowrap valign="top">bool </td>
<td class="mdname1" valign="top" nowrap> <em>threadPrinting1</em> </td>
<td class="md" valign="top"> ) </td>
<td class="md" nowrap><code> [inline]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
</td>
<td>
<p>
The <b>ThreadPrinting</b> option specifies whether the name of the current thread is part of log output or not.
<p>
This is true by default. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="ttcclayout_8h.html">ttcclayout.h</a></ul>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
</BODY>
</HTML>
|