| The introduction to this article provides insufficient context for those unfamiliar with the subject. Please help improve the article with a good introductory style. |
TTCC is a message format used by Log4j. TTCC is acronym for Time Thread Category Component. It uses the following pattern:
%r [%t] %-5p %c %x - %m\n
Where
| Mnemonic | Description |
|---|---|
| %r | Used to output the number of milliseconds elapsed from the construction of the layout until the creation of the logging event. |
| %t | Used to output the name of the thread that generated the logging event. |
| %p | Used to output the priority of the logging event. |
| %c | Used to output the category of the logging event. |
| %x | Used to output the NDC (nested diagnostic context) associated with the thread that generated the logging event. |
| %m | Used to output the application supplied message associated with the logging event. |
Example output
467 [main] INFO org.apache.log4j.examples.Sort - Exiting main method.
External links
No comments have been added.





