使用telegram机器人发送日志
<dependency>
<groupId>com.github.mayan31370</groupId>
<artifactId>LogbackTelegramAdapter</artifactId>
<version>v0.9.4</version>
</dependency>
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<appender name="TG" class="win.mayan.utils.TelegramAppender">
<systemName>your_log_title</systemName>
<telegramChatId>your_channel_id</telegramChatId>
<telegramToken>your_bot_token</telegramToken>
</appender>