InterviewSolution
| 1. |
What Is The Purpose Of Patternlayout Object? |
|
Answer» If you WANT to GENERATE your logging information in a particular format based on a PATTERN, then you can use org.apache.log4j.PatternLayout to format your logging information. The PatternLayout class extends the abstract org.apache.log4j.Layout class and overrides the format() method to structure the logging information according to a SUPPLIED pattern. If you want to generate your logging information in a particular format based on a pattern, then you can use org.apache.log4j.PatternLayout to format your logging information. The PatternLayout class extends the abstract org.apache.log4j.Layout class and overrides the format() method to structure the logging information according to a supplied pattern. |
|