Popularity
1.3
Growing
Activity
0.0
-
24
1
3

Monthly Downloads: 55
Programming language: Rust
License: MIT License
Tags: Log     Applications written in Rust     System tools     Bot     Telegram     Slog    
Latest version: v1.2.0

logram alternatives and similar packages

Based on the "System tools" category

Do you think we are missing an alternative of logram or a related project?

Add another 'System tools' Package

README

logram - pipe log updates to Telegram crates.io

Logram takes logs from files and systemd services and send them to Telegram.

Usage

  1. Download the latest release and install it: sudo dpkg -i logram_..._amd64.deb
  2. Create bot via @BotFather
  3. Run logram in echo_id mode: logram echo_id --token=...
  4. Send any message to bot and he will answer chat id
  5. Change config at /etc/logram.yaml
  6. Run via systemd: sudo systemctl start logram
  7. Optionally: enable systemd service (for autostart): sudo systemctl enable logram

Usage with log

  1. Load logram as library toml [dependencies] logram = "1.2"
  2. Init logram ```rust use log::{debug, error, info, log, trace, warn, Level}; use logram;

fn main() { logram::init( "bot token".to_string(), "chat id".to_string(), Level::Error, ) .unwrap();

error!("error");

}

Limitations: log records with target starts with `tokio_reactor, hyper, mio, want or reqwest` will be skipped, because [limitations in log](https://github.com/rust-lang-nursery/log/issues/312).