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 |
Explain why to use Apache Log4j?
Inside logger component what are the different log levels?
what are the two static methods for obtaining a logger object?
what are the logging methods provided by logger class?
why do you get multiple copies of the message in log file sometime?
what are the format characters used in log4j?
Explain whether a log output format can be customized?
what are Appenders in Log4j?
what is the difference between Threshold and LevelRangeFilter in log4j?
what is the role of filter in log4j?
what is the best way to migrate from java.util logging to log4j?
what does WARN and TRACE level indicates in log4j?