Skip to content

Instantly share code, notes, and snippets.

@anmol2709

anmol2709/logback.xml

Last active Dec 29, 2019
Embed
What would you like to do?
<configuration>
<appender name="FILE" class="ch.qos.logback.core.FileAppender">
<file>src/main/resources/testFile.log</file>
<append>true</append>
<encoder>
<pattern>%d{HH:mm:ss.SSS} %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="FILE" />
</root>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment