Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using with org.apache.log4j.RollingFileAppender #58

Open
dannyellis-zz opened this issue Nov 27, 2015 · 1 comment
Open

Using with org.apache.log4j.RollingFileAppender #58

dannyellis-zz opened this issue Nov 27, 2015 · 1 comment

Comments

@dannyellis-zz
Copy link

I'm trying to get this working with a RollingFileAppender, but it doesn't seem to be taking. Can't see anything useful in the log file but was wondering if something looked strange about my log4j.xml file

<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
     <errorHandler class="org.apache.log4j.helpers.OnlyOnceErrorHandler"/>
     <param name="File" value="${jboss.home.dir}/log/server.log"/>
     <param name="Append" value="true"/>
     <param name="Threshold" value="TRACE"/>
     <param name="MaxFileSize" value="10000KB"/>
     <param name="MaxBackupIndex" value="5"/>
     <layout class="net.logstash.log4j.JSONEventLayoutV1"/>
   </appender>
@lindsaymacvean
Copy link

Possibly I have the same issue. I have set the MaxFileSize to 100KB but it just expands straight past that. It does not throw an error so the parameter is accepted as valid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants