Source

miuler-mocksmtp / src / main / resources / logback.xml

Full commit
<?xml version="1.0" encoding="UTF-8"?>

<!-- For assistance related to logback-translator or configuration  -->
<!-- files in general, please contact the logback user mailing list -->
<!-- at http://www.qos.ch/mailman/listinfo/logback-user             -->
<!--                                                                -->
<!-- For professional support please see                            -->
<!--    http://www.qos.ch/shop/products/professionalSupport         -->
<!--                                                                -->
<configuration>
    <!-- Errors were reported during translation. -->
    <!-- No root logger configuration was found -->
    <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
        <encoder>
            <pattern>%d{MMM dd, HH:mm:ss} [%p] - [%t] - %c.%M\(%F:%L\) %m %n</pattern>
        </encoder>
    </appender>
    <appender name="logfile" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <!--See http://logback.qos.ch/manual/appenders.html#RollingFileAppender-->
        <!--and http://logback.qos.ch/manual/appenders.html#TimeBasedRollingPolicy-->
        <!--for further documentation-->
        <File>dsm-webapp.log</File>
        <MaxFileSize>1024KB</MaxFileSize>
        <MaxBackupIndex>5</MaxBackupIndex>
        <encoder>
            <pattern>%d{MMM dd, HH:mm:ss} [%p] - [%t] - %c.%M\(%F:%L\) %m %n</pattern>
        </encoder>
    </appender>
    <logger name="com.miuler.mocksmtp.core" level="DEBUG">
        <appender-ref ref="stdout"/>
        <!--<appender-ref ref="logfile"/>-->
    </logger>
    <!--<root level="DEBUG">-->
        <!--<appender-ref ref="stdout" />-->
    <!--</root>-->
</configuration>