Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pendula95/logback-mattermost-appender

Logback appender for sending messages to Mattermost server
https://github.com/pendula95/logback-mattermost-appender

appender bot java logback mattermost webhook

Last synced: 19 days ago
JSON representation

Logback appender for sending messages to Mattermost server

Awesome Lists containing this project

README

        

# Logback Mattermost Appender

[![CI](https://github.com/pendula95/logback-mattermost-appender/actions/workflows/maven-build.yml/badge.svg)](https://github.com/pendula95/logback-mattermost-appender/actions/workflows/maven-build.yml)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.pendula95/logback-mattermost-appender/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.pendula95/logback-mattermost-appender)

LMA is a simple [Logback](https://logback.qos.ch/) appender which provides a way to send log messages directly to
your [Mattermost](https://mattermost.com/) server. It supports both BOT integration and Webhook integration.

This version of LMA has been tested against the latest Mattermost server version.

Binaries/Download
----------------
Binaries and dependency information for Maven, Ivy, Gradle and others can be found at http://search.maven.org.

Releases of LMA are available in the Maven Central repository.

Example for Maven:

```xml

io.github.pendula95
logback-mattermost-appender
x.y.z

```

Example for Gradle:

```groovy
implementation 'io.github.pendula95:logback-mattermost-appender:x.y.z'
```

Basic Usage
-----------
Add SlackAppender configuration to logback.xml file.

Bot integration Appender configuration:

```xml

...


https://messages.acme.com

xxxxxxxxxxxxxxxxxxxxxxxxxx

yyyyyyyyyyyyyyyyyyyyyyyyyy


true



**${HOSTNAME} %date{"yyyy-MM-dd'T'HH:mm:ssXXX"} %logger{128}** %n%msg%n

```

Webhook integration example:

```xml

...


https://messages.acme.com/hooks/xxxxxxxxxxxxxxxxxxxxxxxxxx










true



**${HOSTNAME} %date{"yyyy-MM-dd'T'HH:mm:ssXXX"} %logger{128}** %n%msg%n

```

Recommended way of using Mattermost appender:

```xml

....




ERROR





```

Example
-------

References
----------
* [Mattermost Webhooks](https://developers.mattermost.com/integrate/webhooks/incoming/)
* [Mattermost API](https://api.mattermost.com/)