java - How come Log4J double the size of log file? -
And Every log file increases as long as when I set set Log4J Always double the log size with my settings What is happening now? Each log file increases as long as These are my dependencies 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
19,488kb
MaxFileSize = 10000000
MaxFileSize = 10 MB
20,000kb
& 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
Post a Comment