This project is logback appender for Google Chat(Google Hangouts).
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'
}
<appender name="google" class="io.pemassi.logback.GoogleChatAppender">
<!-- Put your web hook URI here -->
<!-- You need to replace `&` letter to `&` for `webhookUri` because `&` is reserved letter in XML. -->
<webhookUri>YOUR WEB HOOK URI</webhookUri>
<!-- Formatting -->
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>%-4relative [%thread] %-5level %class - %msg%n</pattern>
</layout>
</appender>
You need to replace
&
letter to&
forwebhookUri
because&
is reserved letter in XML.