java - How come Log4J double the size of log file? -


itemprop = "text">

And slf4j-log4j12 set up the following

  log4j.appender.ROL = org.apache.log4j.RollingFileAppender log4j.appender.ROL.Encoding = Unicode log4j.appender. In ROL File = e: \\ I_Told_Ya.log log4j.appender.ROL.MaxFileSize = 100000 log4j.appender.ROL.MaxBackupIndex = 10 log4j.appender.ROL.layout = org.apache.log4j.PatternLayout log4j.appender.ROL.layout. When I set  
  MaxFileSize = 10000000  

Every log file increases as long as 19,488kb

when I set

  MaxFileSize = 10000000  

set

  MaxFileSize = 10 MB  

Log4J Always double the log size with my settings

What is happening now?

Each log file increases as long as 20,000kb

These are my dependencies

  & lt; Dependency & gt; & Lt; Group & gt; Log4j & lt; / Group & gt; & Lt; ArtifactId & gt; Log4j & lt; / ArtifactId> & Lt; Version & gt; 1.2.17 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Log4j & lt; / Group & gt; & Lt; ArtifactId & gt; Apache-log4j-Extra Artist & lt; / ArtifactId> & Lt; Version & gt; 1.2.17 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.slf4j & lt; / Group & gt; & Lt; ArtifactId & gt; Slf4j-api & lt; / ArtifactId> & Lt; Version & gt; $ {Slf4j.version} & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.slf4j & lt; / Group & gt; & Lt; ArtifactId & gt; JCL-over-slf4j & lt; / ArtifactId> & Lt; Version & gt; $ {Slf4j.version} & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.slf4j & lt; / Group & gt; & Lt; ArtifactId & gt; Slf4j-log4j12 & lt; / ArtifactId> & Lt; Version & gt; $ {Slf4j.version} & lt; / Edition & gt; & Lt; / Dependencies & gt;  


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -