Last active
April 2, 2023 10:13
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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