<?xml version="1.0" encoding="UTF-8"?>
<Configuration>
    <Appenders>
        <Console name="STDOUT" target="SYSTEM_OUT">
            <PatternLayout pattern="----> %m%n"/>
        </Console>
        <RollingFile name="FILE" fileName="/var/log/hirs/provisioner/HIRS_Provisioner.log"
                     filePattern="/var/log/hirs/provisioner/HIRS_Provisioner.log-%d{yyyy-MM-dd}-%i.log" >
            <PatternLayout>
                <pattern>%d{yyyy-MM-dd HH:mm:ss} [%C.%M] %-5p : %m%n</pattern>
            </PatternLayout>
            <Policies>
                <SizeBasedTriggeringPolicy size="10 MB" />
            </Policies>
            <DefaultRolloverStrategy max="10"/>
        </RollingFile>
    </Appenders>
    <Loggers>
        <logger name="hirs" level="WARN" additivity="false">
            <AppenderRef ref="STDOUT"/>
            <AppenderRef ref="FILE"/>
        </logger>
        <!-- log spring and activemq logs at the warn level only to all appenders-->
        <logger name="org.springframework" level="WARN" additivity="false">
            <AppenderRef ref="STDOUT"/>
            <AppenderRef ref="FILE"/>
        </logger>
        <logger name="org.apache.activemq" level="WARN" additivity="false">
            <AppenderRef ref="STDOUT"/>
            <AppenderRef ref="FILE"/>
        </logger>
        <Root level = "WARN">
            <AppenderRef ref="FILE"/>
        </Root>
    </Loggers>
</Configuration>
