https://github.com/platx/slog-telegram
Telegram handler for slog
https://github.com/platx/slog-telegram
go golang golang-library logger logging slog slog-handler telegram telegram-logger
Last synced: 12 months ago
JSON representation
Telegram handler for slog
- Host: GitHub
- URL: https://github.com/platx/slog-telegram
- Owner: platx
- License: mit
- Created: 2024-12-29T19:26:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-29T23:31:34.000Z (over 1 year ago)
- Last Synced: 2025-02-24T12:19:19.224Z (over 1 year ago)
- Topics: go, golang, golang-library, logger, logging, slog, slog-handler, telegram, telegram-logger
- Language: Go
- Homepage:
- Size: 128 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Telegram handler for slog
[](https://github.com/platx/slog-telegram/releases/latest)
[](LICENSE)
[](https://codecov.io/github/platx/slog-telegram)
[](https://godoc.org/github.com/platx/slog-telegram)
[](https://goreportcard.com/report/github.com/platx/slog-telegram)
This is a handler for the [slog](https://pkg.go.dev/log/slog) package that sends log messages to a [Telegram](https://telegram.org/) chat.
## Installation
```bash
go get github.com/platx/slog-telegram
```
Minimum Go version: 1.23
## Usage
* [basic usage](./docs/base.md)
* [batch processing](./docs/batch.md)
* [custom formatter](./docs/format.md)
## License
MIT licensed. See the [LICENSE](./LICENSE) file for details.