Logback Appender for Google Chat(Google Hangouts)
This project is logback appender for Google Chat(Google Hangouts).
Setup
Add the JitPack repository in your build.gradle (top level module):
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
And add next dependencies in the build.gradle of the module:
dependencies {
implementation 'com.github.pemassi:logback-google-chat-appender:[VERSION TAG]'
//Example
implementation 'com.github.pemassi:logback-google-chat-appender:1.0.0'
}
How to use?
<appender name="google" class="io.pemassi.logback.GoogleChatAppender">
<webhookUri>YOUR WEB HOOK URIwebhookUri>
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>%-4relative [%thread] %-5level %class - %msg%npattern>
layout>
appender>
You need to replace
&
letter to&
forwebhookUri
because&
is reserved letter in XML.