TTCC

From Seo Wiki - Search Engine Optimization and Programming Languages

Jump to: navigation, search

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

Personal tools

Served in 0.085 secs.