The rolling would probably happened based on if the appender
processing the current event thought it should be rolled.

On Wed, May 28, 2008 at 12:15 PM, Alec Lebedev
<[EMAIL PROTECTED]> wrote:
> 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
>
>



-- 
James A. N. Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to