Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active April 2, 2023 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/6e810d7ca84530a8d730b9386ba46082 to your computer and use it in GitHub Desktop.
Save dacr/6e810d7ca84530a8d730b9386ba46082 to your computer and use it in GitHub Desktop.
simple logback logging configuration / published by https://github.com/dacr/code-examples-manager #9d9b146f-ded7-4387-8885-d0b3097d0d68/1d1dc814f7d91888c0bb1899377a8dd5168271ae
<?xml version="1.0" encoding="UTF-8"?>
<!--
// summary : simple logback logging configuration
// keywords : logging, configuration, logback
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// id : 9d9b146f-ded7-4387-8885-d0b3097d0d68
// created-on : 2022-02-08T18:48:40+01:00
// managed-by : https://github.com/dacr/code-examples-manager
-->
<configuration
scan="false"
scanPeriod="10 seconds"
xmlns="http://ch.qos.logback/xml/ns/logback"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ch.qos.logback/xml/ns/logback https://raw.githubusercontent.com/enricopulatzo/logback-XSD/master/src/main/xsd/logback.xsd">
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%date %level %logger{10} [%file:%line] %msg%n</pattern>
</encoder>
</appender>
<logger name="com.example" level="info"/>
<root level="info">
<appender-ref ref="STDOUT"/>
</root>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment