Configurations to add size based file rolling appender
<!-- A size based file rolling appender -->
<appender name="FILE_EXTERNAL_RESOURCE_CONNECTOR" class="org.jboss.logging.appender.RollingFileAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<param name="File" value="${jboss.server.log.dir}/external-resource-connector.log"/>
<param name="Append" value="false"/>
<param name="MaxFileSize" value="500KB"/>
<param name="MaxBackupIndex" value="10"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
</layout>
</appender>
<category name="com.questdiagnostics.commons.externalresourceconnector" additivity="false">
<priority value="DEBUG"/>
<appender-ref ref="FILE_EXTERNAL_RESOURCE_CONNECTOR"/>
</category>
<!-- ======================= -->
<!-- Setup the Root category -->
<!-- ======================= -->
<root>
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
</root>
Note: You do not want to define the FILE_EXTERNAL_RESOURCE_CONNECTOR appender in root. It automatically picks up.
Comments