TTCC
From Seo Wiki - Search Engine Optimization and Programming Languages
This article is an orphan, as few or no other articles link to it. Please introduce links to this page from related articles; suggestions are available. (February 2009) |
The introduction to this article provides insufficient context for those unfamiliar with the subject. Please help improve the article with a good introductory style. (October 2009) |
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. |
%n | Used to output the platform-specific newline character or characters. |
Example output
467 [main] INFO org.Apache.log4j.examples.Sort - Exiting main method.
External links
↓