Skip to content

Instantly share code, notes, and snippets.



Forked from vazexqi/logback.xml
Created Oct 22, 2017
What would you like to do?
sfl4j logging with Groovy using Gradle to manage dependencies (logback.xml) See
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- Daily rollover -->
<!-- Keep 7 days' worth of history -->
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
<!-- Configure so that it outputs to both console and log file -->
<root level="DEBUG">
<appender-ref ref="FILE" />
<appender-ref ref="STDOUT" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment