Skip to content

About

Java Logback Appender for Google Chat(Google Hangouts)

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

Logback Appender for Google Chat(Google Hangouts)

Release Gradle CI

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">
    <!-- Put your web hook URI here -->
    <!-- You need to replace `&` letter to `&amp;` 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 &amp; for webhookUri because & is reserved letter in XML.

About

Java Logback Appender for Google Chat(Google Hangouts)

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages