Skip to content

Instantly share code, notes, and snippets.

@gianm
Last active August 29, 2015 14:14
Show Gist options
  • Save gianm/68418f18762fa92b3abb to your computer and use it in GitHub Desktop.
Save gianm/68418f18762fa92b3abb to your computer and use it in GitHub Desktop.

Dependencies

"ch.qos.logback" % "logback-core" % "1.1.2",
"ch.qos.logback" % "logback-classic" % "1.1.2",
"org.slf4j" % "log4j-over-slf4j" % "1.7.6",
"org.slf4j" % "jul-to-slf4j" % "1.7.6"

logback.xml

<configuration>

  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <!-- encoders are assigned the type
         ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>

  <root level="trace">
    <appender-ref ref="STDOUT" />
  </root>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment