An XML Schema Definition for logback
Switch branches/tags
Nothing to show
Latest commit ae9ad04 Jan 10, 2017 @enricopulatzo committed on GitHub Merge pull request #34 from oliviercailloux/patch-1
A few cosmetic changes
Permalink
Failed to load latest commit information.
src/main/xsd Filter-level type: LoggerLevel Aug 23, 2016
LICENSE Update LICENSE Oct 15, 2014
README.md Updated usage in documentation May 4, 2016

README.md

logback XSD

Overview

The purpose of this project is to provide a useful XML Schema Definition file for use in logback configuration files.

The logback project does not provide an XSD which prevents editors from easily providing auto-complete functionality to the configuration files used by logback.

A simple usage example:

  <?xml version="1.0" encoding="UTF-8"?>
  <configuration
    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 http://ch.qos.logback/xml/ns/logback/logback.xsd">

    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
      <encoder>
        <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
      </encoder>
    </appender>
    <root level="WARN">
        <appender-ref ref="STDOUT" />
    </root>
  </configuration>