Logback Appender for LINE Notify
Java Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/main/java/com/krrrr38/logback/notify
.gitignore
LICENSE
Makefile
README.md
pom.xml

README.md

logback-line-notify-appender

Logback Appender for LINE Notify.

Setup

Maven Central

<dependency>
  <groupId>com.krrrr38</groupId>
  <artifactId>logback-line-notify-appender</artifactId>
  <version>${version}</version>
</dependency>
  • logback.xml
<appender name="LINE_NOTIFY" class="com.krrrr38.logback.notify.LineNotifyAppender">
  <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
    <level>WARN</level>
  </filter>
  <layout>
    <pattern>%d{HH:mm:ss} %-5level %logger{0}%n%msg%n%ex{2}</pattern>
  </layout>
  <accessToken>YOUR_LINE_NOTIFY_ACCESSS_TOKEN</accessToken> // mandatory
  <endpoint>https://notify-api.line.me/api/notify</endpoint> // optional
  <queueSize>10</queueSize> // optional, if not set use LinkedBlockingQueue directly.
</appender>

<root level="INFO">
  <appender-ref ref="LINE_NOTIFY"/>
</root>

NOTE: LINE Notify has Rate Limit. This appender doesn't guarantee all events would be sent.

Dev Tools

Release

make release

SNAPSHOT Release

make snapshot