Explain whether a log output format can be customized?



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

Post New Answer

More Apache Log4j Interview Questions

what are the different types of Appenders?

1 Answers  


what is the best way to migrate from java.util logging to log4j?

1 Answers  


what is Log4j?

1 Answers  


what are Appenders in Log4j?

1 Answers  


Explain why to use Apache Log4j?

1 Answers  


Inside logger component what are the different log levels?

1 Answers  


what is the role of filter in log4j?

1 Answers  


what are the three principal components of Log4j?

1 Answers  


what are the system properties checked by log4j?

1 Answers  


How log4j file is defined?

1 Answers  


In log4j how can you log into the database?

1 Answers  


what are the format characters used in log4j?

1 Answers  


Categories