What is the purpose of % character used in the conversionPattern of PatternLayout object?

Question:What is the purpose of % character used in the conversionPattern of PatternLayout object?

1.Used to output the NDC (nested diagnostic context) associated with the thread that generated the logging event.

2.Used to print the information stored in the MDC against the key.

3.Used to print a % sign.

4.Used to Left pad with spaces if the category name is less than 20 characters long.


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!