logback-telegram

Logback appender for Telegram

License

License

Categories

Categories

Logback Application Layer Libs Logging
GroupId

GroupId

name.gcg
ArtifactId

ArtifactId

logback-telegram
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

logback-telegram
Logback appender for Telegram
Project URL

Project URL

https://github.com/tsowa48/logback-telegram
Source Code Management

Source Code Management

https://github.com/tsowa48/logback-telegram

Download logback-telegram

How to add to project

<!-- https://jarcasting.com/artifacts/name.gcg/logback-telegram/ -->
<dependency>
    <groupId>name.gcg</groupId>
    <artifactId>logback-telegram</artifactId>
    <version>1.0</version>
</dependency>
// https://jarcasting.com/artifacts/name.gcg/logback-telegram/
implementation 'name.gcg:logback-telegram:1.0'
// https://jarcasting.com/artifacts/name.gcg/logback-telegram/
implementation ("name.gcg:logback-telegram:1.0")
'name.gcg:logback-telegram:jar:1.0'
<dependency org="name.gcg" name="logback-telegram" rev="1.0">
  <artifact name="logback-telegram" type="jar" />
</dependency>
@Grapes(
@Grab(group='name.gcg', module='logback-telegram', version='1.0')
)
libraryDependencies += "name.gcg" % "logback-telegram" % "1.0"
[name.gcg/logback-telegram "1.0"]

Dependencies

compile (2)

Group / Artifact Type Version
ch.qos.logback : logback-classic jar 1.2.3
org.apache.maven : maven-artifact jar 3.0

Project Modules

There are no modules declared in this project.

logback.telegram

Logback Appender for Telegram

Info

This library will be send log messages of your application into Telegram chat or user

Usage

<appender name="telegram" class="gcg.logback.TelegramAppender">
    <minimumEventLevel>LOG_LEVEL</minimumEventLevel>
    <options>
      <key>BOT_KEY</key>
      <chat>CHAT_ID</chat>
      <app>APP_NAME</app>
    </options>
  </appender>

Set these variables to your values:

LOG_LEVEL - standart logback levels (DEBUG, TRACE, INFO, WARN, ERROR), default is ERROR;

BOT_KEY - api key of telegram bot;

CHAT_ID - chat_id or user_id where messages will be sent;

APP_NAME - your (preferably unique) application name.

Versions

Version
1.0