how can you get multiple processes to log to the same file?
Answer / Survind Mani Tripathi
To make multiple processes log to the same file, you should use a RollingFileAppender or DailyRollingFileAppender in Log4j and configure them to roll over to a new file when the file size reaches a specified limit. Each appender will then write its logs into the same file.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain why to use Apache Log4j?
what is package level logging in log4j?
what are Appenders in Log4j?
Explain whether log4j is a thread safe?
what is the best way to migrate from java.util logging to log4j?
what are the logging methods provided by logger class?
Explain whether a log output format can be customized?
what are the system properties checked by log4j?
what is Log4j?
what does .class mean in log4j context?
what are the other support objects in Log4j?
what is layouts in log4j?