logback-idobata is simple logback appender for Idobata.
Add logback-idobata to dependencies in your pom.xml file.
<dependencies>
<dependency>
<groupId>com.github.fossamagna</groupId>
<artifactId>logback-idobata</artifactId>
<version>0.1.0</version>
</dependency>
</dependencies>
Add logback-idobata to dependencies in your build.gradle file.
dependencies {
compile 'com.github.fossamagna:logback-idobata:0.1.0'
}
Add IdobataAppender configuration to logback.groovy file.
import static ch.qos.logback.classic.Level.*
import com.github.fossamagna.logback.idobata.IdobataAppender
def webHookUrl = System.getenv("IDOBATA_NOTIFICATION_URL")
if (webHookUrl) {
appender("Idobata", IdobataAppender) {
endpointUrl = new URL(webHookUrl)
}
root(ERROR, ["Idobata"])
}
logback-idobata is Open Source software released under the Apache 2.0 license.