logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geff Chang [1]" <geffch...@gmail.com>
Subject Re: [HELP] log file larger than specified MaxFileSize.
Date Sat, 28 Apr 2007 02:44:00 GMT
That sounds good. I'll check it out. Thanks a lot.

James Stauffer wrote:
> You can by having each application send the error logs to a socket
> appender and then have a listener that writes all of them to one file.
> You just shouldn't have multiple applications write to the same file.
>
> On 4/27/07, geff henderson chang <geffchang@gmail.com> wrote:
>> Thanks! I guess I will just have to use a different log file for
>> different modules.
>> I was hoping there was a way to log errors into just one file, though.
>> But, thanks! You just made my day.
>>
>> Regards,
>> Geff
>>
>> On 4/27/07, Ceki Gulcu <listid@qos.ch> wrote:
>> >
>> >
>> > geff henderson chang wrote:
>> > > Ceki:
>> > >
>> > > Thanks for the response.
>> >
>> > Sure.
>> >
>> > > I don't have any problems with using other log files.
>> > >
>> > > My current situation is this.
>> > > I have different log4j.xml files for different modules.
>> > > For the error log, they all refer to the same error.log
>> > > But one of them specifies a different maximum size.
>> > >
>> > > BUT, if I set the maximum size equally for all (say, 50MB),
>> > > do you think the error.log file will not go beyond the 50MB size?
>> > >
>> > > Anyway, so this implementation of different modules
>> > > running under different JVMs using the same log file is not 
>> recommended?
>> >
>> > It's even worse than that. As long as multiple appenders open the 
>> same file,
>> > regardless of their host VM, you are bound to run into trouble.
>> >
>> > HTH,
>> >
>> > --
>> > Ceki Gülcü
>> > Logback: The reliable, generic, fast and flexible logging framework 
>> for Java.
>> > http://logback.qos.ch
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> > For additional commands, e-mail: log4j-user-help@logging.apache.org
>> >
>> >
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message