<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | |
<encoder> | |
<pattern>%d{yyyy-MM-dd HH:mm:ss} | %-5p | [%thread] %logger{5}:%L - %msg%n</pattern> | |
</encoder> | |
</appender> | |
<appender name="FILE" class="ch.qos.logback.core.FileAppender"> | |
<file>logFile.log</file> | |
<append>true</append> | |
<encoder> | |
<pattern>%d{yyyy-MM-dd HH:mm:ss} | %-5p | [%thread] %logger{5}:%L - %msg%n</pattern> | |
</encoder> | |
</appender> | |
<logger name="com.memorynotfound" level="INFO"/> | |
<root level="INFO"> | |
<appender-ref ref="STDOUT" /> | |
<appender-ref ref="FILE" /> | |
</root> | |
</configuration> |