<?xml version="1.0" encoding="UTF-8"?>
<!-- Copied from https://github.com/mushkevych/log4j2plugin -->
<!-- status    The level of internal Log4j events that should be logged to the console. -->
<!-- name      The name of the configuration. -->
<!-- packages  A comma separated list of package names to search for plugins. -->
<!-- verbose Enables diagnostic information while loading plugins.-->
<Configuration status="info" name="RoutingLoggingConfiguration" packages="com.hcl.cdp.logging.log4j2plugin" verbose="false">
    <Properties>
        <Property name="routing_filename">${log.path}/type-$${sd:type}.log</Property>
        <Property name="alpha_log_filename">${log.path}/alpha_log.log</Property>
    </Properties>

    <Appenders>
        <Console name="STDOUT">
            <PatternLayout pattern="%d{yyyyMMddHH}{GMT+0} %m%n"/>
        </Console>
        
        <RollingFile name="RollingFile-AlphaLog"
                     fileName="${alpha_log_filename}"
                     filePattern="${log.path}/alpha_log/%d{yyyyMMdd}{GMT+0}-${hostName}.%i.log.gz">
            <RegexFilter regex="^$" onMatch="DENY" onMismatch="ACCEPT"/>
            <PatternLayout>
                <Pattern>%d{yyyyMMddHH}{GMT+0} %m %n</Pattern>
            </PatternLayout>
            <Policies>
                <!-- Exactly same as time based rolling policy but with external thread monitoring and rolling files -->
                <!-- For the background thread to run, Instantiate LogRotateThread once on the start of your program -->
                <FTimeBasedTriggeringPolicy interval="1" />
                <SizeBasedTriggeringPolicy size="64 MB" />
            </Policies>
            <DefaultRolloverStrategy max="100"/>
        </RollingFile>
    </Appenders>

    <Loggers>
        <Logger name="EventLogger" level="debug" additivity="false">
            <AppenderRef ref="Routing"/>
        </Logger>

        <Logger name="AlphaLogger" level="info" additivity="false">
            <AppenderRef ref="RollingFile-AlphaLog"/>
        </Logger>

        <Root level="warn">
            <AppenderRef ref="STDOUT"/>
        </Root>
    </Loggers>

</Configuration>
