Skip to content

kewang/logback-redmine-appender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logback-redmine-appender

Build Status Maven Central

demo

Features

  • Create ERROR level log @ Redmine
  • Merge the same StackTraces @ one issue
  • Link StackTraces with git repo (support GitHub, GitLab, BitBucket)

Dependency

Maven

<dependency>
  <groupId>tw.kewang</groupId>
  <artifactId>logback-redmine-appender</artifactId>
  <version>0.4.0</version>
</dependency>

Gradle

compile 'tw.kewang:logback-redmine-appender:0.4.0'

How to use

<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 -->
  <git class="tw.kewang.logback.appender.tag.TagGit">
    <repoUrl>https://bitbucket.org/kewang/logback-redmine-appender</repoUrl> <!-- Optional, Your git vendor URL, https://github.com / https://gitlab.com / https://gitlab.example.com / https://bitbucket.org -->
    <commit>fa729ff</commit> <!-- Optional, Your git commit -->
    <parentDir>src/main/java</parentDir> <!-- Optional, Your parent directory -->
  </git>
  <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
    <pattern>${PATTERN}</pattern>
    <charset>${CHARSET}</charset>
  </encoder>
</appender>

References

About

Integrate Logback and Redmine issue tracking system

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages