Explain whether a log output format can be customized?
Answer / Ankit Jain
Yes, in Log4j, the log output format can be customized by defining a Layout object and associating it with an Appender. The Layout object determines how log events are formatted before they are passed to the appender.
| Is This Answer Correct ? | 0 Yes | 0 No |
what are Appenders in Log4j?
what are the three principal components of Log4j?
why do you get multiple copies of the message in log file sometime?
what is the difference between Threshold and LevelRangeFilter in log4j?
what are the system properties checked by log4j?
what are the format characters used in log4j?
what is the role of filter in log4j?
what does .class mean in log4j context?
what are the logging methods provided by logger class?
Explain whether log4j is a thread safe?
what does WARN and TRACE level indicates in log4j?
what are the two static methods for obtaining a logger object?