I have two pieces of code which I want to log messages to the same file, but use different pattern format.
I created two RollingFileAppender appenders, one - for each pattern format. Both appenders log to the same file. Is this safe to do? If this is safe to do, then let's assume that the first appender has MaxFileSize 1MB and MaxBackupIndex of 10, another appender has MaxFileSize 2MB and MaxBackupIndex of 20. How would the log file grow in this case? If this is not safe to do, then how can I have two pieces of code log into the same file, but have different log levels and message patterns? Thanks. Alec
