Explain whether log4j is a thread safe?
Answer / Ravi Prakash Gupta
Log4j is not inherently thread-safe. If you are using multiple threads, you should make sure to use a synchronized logger or use a separate logger instance for each thread.
| Is This Answer Correct ? | 0 Yes | 0 No |
what are Appenders in Log4j?
what is the role of filter in log4j?
Explain why to use Apache Log4j?
what are the other support objects in Log4j?
why do you get multiple copies of the message in log file sometime?
what are the different types of Appenders?
what is the best way to migrate from java.util logging to log4j?
Inside logger component what are the different log levels?
what are the logging methods provided by logger class?
what is package level logging in log4j?
Explain whether a log output format can be customized?
what are the system properties checked by log4j?