<?xml version='1.0' encoding='UTF-8'?>
<!--  See src/resources/configuration/ReadMe.txt for how the configuration assembly works -->
<config default-supplement="default">
   <extension-module>org.jboss.as.logging</extension-module>
   <subsystem xmlns="urn:jboss:domain:logging:3.0">
       <console-handler name="CONSOLE">
           <level name="INFO"/>
           <formatter>
               <named-formatter name="COLOR-PATTERN"/>
           </formatter>
       </console-handler>
       <periodic-rotating-file-handler name="FILE" autoflush="true">
           <formatter>
               <named-formatter name="PATTERN"/>
           </formatter>
           <file relative-to="jboss.server.log.dir" path="server.log"/>
           <suffix value=".yyyy-MM-dd"/>
           <append value="@@append@@"/>
       </periodic-rotating-file-handler>
       <size-rotating-file-handler name="HR-ACCESS-FILE" autoflush="true">
           <formatter>
               <named-formatter name="ACCESS-LOG"/>
           </formatter>
           <file relative-to="jboss.server.log.dir" path="hotrod-access.log"/>
           <append value="@@append@@"/>
           <rotate-size value="10M"/>
           <max-backup-index value="10"/>
       </size-rotating-file-handler>
       <size-rotating-file-handler name="REST-ACCESS-FILE" autoflush="true">
           <formatter>
               <named-formatter name="ACCESS-LOG"/>
           </formatter>
           <file relative-to="jboss.server.log.dir" path="rest-access.log"/>
           <append value="@@append@@"/>
           <rotate-size value="10M"/>
           <max-backup-index value="10"/>
       </size-rotating-file-handler>

       <?LOGGERS?>
       <logger category="org.infinispan.HOTROD_ACCESS_LOG" use-parent-handlers="false">
           <!-- Set to TRACE to enable access logging for hot rod or use DMR -->
           <level name="INFO"/>
           <handlers>
               <handler name="HR-ACCESS-FILE"/>
           </handlers>
       </logger>
       <logger category="org.infinispan.REST_ACCESS_LOG" use-parent-handlers="false">
           <!-- Set to TRACE to enable access logging for rest or use DMR -->
           <level name="INFO"/>
           <handlers>
               <handler name="REST-ACCESS-FILE"/>
           </handlers>
       </logger>
       <root-logger>
           <level name="INFO"/>
           <handlers>
               <handler name="CONSOLE"/>
               <handler name="FILE"/>
           </handlers>
       </root-logger>
       <formatter name="PATTERN">
           <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>
       </formatter>
       <formatter name="COLOR-PATTERN">
           <pattern-formatter pattern="%K{level}%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n"/>
       </formatter>
       <formatter name="ACCESS-LOG">
           <pattern-formatter pattern="%X{address} %X{user} [%d{dd/MMM/yyyy:HH:mm:ss z}] &quot;%X{method} %m %X{protocol}&quot; %X{status} %X{requestSize} %X{responseSize} %X{duration}%n"/>
       </formatter>
   </subsystem>
   <supplement name="default">
      <replacement placeholder="@@append@@" attributeValue="true"/>
      <replacement placeholder="LOGGERS">
	      <logger category="com.arjuna">
	          <level name="WARN"/>
	      </logger>
	      <logger category="org.jboss.as.config">
	          <level name="DEBUG"/>
	      </logger>
	      <logger category="sun.rmi">
	          <level name="WARN"/>
	      </logger>
      </replacement>
   </supplement>
   <supplement name="minimal">
      <replacement placeholder="@@append@@" attributeValue="false"/>
      <replacement placeholder="LOGGERS"/>
   </supplement>
</config>
