back-redmine-appender.0.3.0.source-code.logback.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logback-redmine-appender Show documentation
Show all versions of logback-redmine-appender Show documentation
Integrate Logback and Redmine issue tracking system
<?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 --> <gitRepoUrl>https://bitbucket.org/kewang/logback-redmine-appender</gitRepoUrl> <!-- Optional, Your git vendor URL, https://github.com / https://gitlab.com / https://gitlab.example.com / https://bitbucket.org --> <gitCommit>fa729ff</gitCommit> <!-- Optional, Your git commit --> <gitParentDir>src/main/java</gitParentDir> <!-- Optional, Your parent directory --> <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>