You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by srkraju <ra...@cmcltd.com> on 2008/06/18 13:32:22 UTC
Urgent log4cxx: Large window sizes are not allowed.
I am using log4cxx0.10.0,apr-1.2.2, aprutil-1.2.2 in my application.
My application is running on Redhat Linux AS5, g++ version 4.1.1
I configured the configuration file as follows
log4j.rootLogger=DEBUG, A1,A2
log4j.appender.A2=org.apache.log4j.RollingFileAppender
log4j.appender.A2.File=exampleA2.log
log4j.appender.A2.Append=true
log4j.appender.A2.MaxBackUpIndex=50
log4j.appender.A2.MaxFileSize=100KB
log4j.appender.A2.layout = org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%d{[dd MMM yyyy HH:mm:ss]} [%-5p]
%c - %m%n
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.Threshold=WARN
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d{[dd MMM yyyy] HH:mm:ss]}
[%-5p] %c - %m%n
While executing the program it's giving a message
log4cxx: Large window sizes are not allowed.
What would the problem.
thanks& regards
srkraju
DISCLAIMER
“The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you"
Re: Urgent log4cxx: Large window sizes are not allowed.
Posted by Dale King <da...@gmail.com>.
On Wed, Jun 18, 2008 at 7:32 AM, srkraju <ra...@cmcltd.com> wrote:
> log4j.appender.A2=org.apache.log4j.RollingFileAppender
> log4j.appender.A2.File=exampleA2.log
> log4j.appender.A2.Append=true
> log4j.appender.A2.MaxBackUpIndex=50
> log4j.appender.A2.MaxFileSize=100KB
> While executing the program it's giving a message
>
> log4cxx: Large window sizes are not allowed.
>
> What would the problem.
You have specified that 50 past backup files be kept (i.e. a window of
50 files). Think about what would have to happen when the log is
rolled over. The software would have to do 50 file renames. That's a
pretty expensive operation. Therefore log4cxx puts an artificial limit
on it. It only supports a maximum of 12 past log files. This can only
be changed by editing the software.
For Curt, I would suggest making the error message a bit more
explanatory. And perhaps have a way to change the limit without
recompiling.
--
Dale King