xlm

mail@pastecode.io avatar
unknown
plain_text
7 months ago
830 B
2
Indexable
Never
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="warn">
    <Appenders>
        <Console name="Console" target="SYSTEM_OUT">
            <PatternLayout pattern="%d{HH:mm:ss} %-5p %c{1}: %m%n"/>
        </Console>
        <RollingFile name="MyLogFile" fileName="my_log_file.log" filePattern="my_log_file_%d{yyyy-MM-dd}.log">
            <PatternLayout pattern="%d{HH:mm:ss} %-5p %c{1}: %m%n"/>
            <Policies>
                <TimeBasedTriggeringPolicy interval="1" intervalUnit="DAYS"/>
            </Policies>
            <DefaultRolloverStrategy max="7" maxFileSize="10MB"/>
        </RollingFile>
    </Appenders>
    <Loggers>
        <Root level="info">
            <AppenderRef ref="Console"/>
            <AppenderRef ref="MyLogFile"/>
        </Root>
    </Loggers>
</Configuration>