All Downloads are FREE. Search and download functionalities are using the official Maven repository.

paign.tests.bridge.service.integroBridgeService.2.11.17.source-code.log4j2.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="utf-8" ?>
<!--

    Copyright 2022 Adobe
    All Rights Reserved.

    NOTICE: Adobe permits you to use, modify, and distribute this file in
    accordance with the terms of the Adobe license agreement accompanying
    it.

-->
<Configuration xmlns="http://logging.apache.org/log4j/2.0/config">

    <Appenders>
        <RollingFile name="RollingFile" fileName="ibs_output/logfile.log"
                     filePattern="ibs_output/logfile-$${date:yyyy-MM-dd}.log.gz">
            <PatternLayout>
                <Pattern>%-5p | %d{yyyy-MM-dd HH:mm:ss} | [%t] %C{2} (%F:%L) - %m%n</Pattern>
            </PatternLayout>
            <Policies>
                <SizeBasedTriggeringPolicy size="50MB"/>
            </Policies>

            <DefaultRolloverStrategy max="12">
                <Delete basePath="ibs_output" maxDepth="2">
                    <IfFileName glob="logfile*.log.gz">
                        <IfAny>
                            <IfAccumulatedFileSize exceeds="3GB"/>
                            <IfLastModified age="P10D"/>
                        </IfAny>
                    </IfFileName>
                </Delete>
            </DefaultRolloverStrategy>
        </RollingFile>
        <Console name="STDOUT" target="SYSTEM_OUT">
            <PatternLayout pattern="%-5p | %d{yyyy-MM-dd HH:mm:ss} | [%t] %C{2} (%F:%L) - %m%n"/>
        </Console>

    </Appenders>


    <Loggers>
        <Root level="TRACE">
            <AppenderRef ref="RollingFile" level="DEBUG"/>
            <AppenderRef ref="STDOUT" level="INFO"/>
            <!--You can set ref="STDOUT" level ="DEBUG" to allow all the logs in the console locally-->
        </Root>
    </Loggers>
</Configuration>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy