All Downloads are FREE. Search and download functionalities are using the official Maven repository.

back-redmine-appender.0.2.2.source-code.logback.xml Maven / Gradle / Ivy

There is a newer version: 0.4.0
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false">
    <contextName>Redmine-Appender</contextName>
    <property name="LOG_HOME" value="logs"/>
    <property name="CHARSET" value="UTF-8"/>
    <property name="PATTERN" value="%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"/>

    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
            <pattern>${PATTERN}</pattern>
            <charset>${CHARSET}</charset>
        </encoder>
    </appender>

    <appender name="FILE" class="ch.qos.logback.core.FileAppender">
        <file>${LOG_HOME}/myLog.log</file>
        <encoder>
            <pattern>${PATTERN}</pattern>
            <charset>${CHARSET}</charset>
        </encoder>
    </appender>

    <appender name="REDMINE" class="tw.kewang.logback.appender.RedmineAppender">
        <url>http://example.com</url> <!-- Required, Your Redmine URL -->
        <apiKey>abcdef1234567890</apiKey> <!-- Required, Your Redmine API key-->
        <projectId>5566</projectId> <!-- Required, Your Redmine Project ID -->
        <title>Logback Redmine Appender</title> <!-- Optional, Your Redmine issue title -->
        <onlyError>true</onlyError> <!-- Optional, Only show ERROR level log, default value is true -->
        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
            <pattern>${PATTERN}</pattern>
            <charset>${CHARSET}</charset>
        </encoder>
    </appender>

    <root level="INFO" additivity="false">
        <appender-ref ref="REDMINE"/>
        <appender-ref ref="STDOUT"/>
        <appender-ref ref="FILE"/>
    </root>
</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy