Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/pendula95/logback-mattermost-appender
- Owner: pendula95
- License: apache-2.0
- Created: 2022-09-19T16:40:15.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-09T04:55:23.000Z (about 1 month ago)
- Last Synced: 2024-10-10T20:51:48.845Z (about 1 month ago)
- Topics: appender, bot, java, logback, mattermost, webhook
- Language: Java
- Homepage:
- Size: 149 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/)