Skip to content

Commit

Permalink
fix lists in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mxseev committed Jan 23, 2021
1 parent 992c133 commit f42189e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Utility that takes logs from anywhere and sends them to Telegram. Supports log c
1. Create a Telegram bot via [@BotFather](https://t.me/BotFather)
2. Download the [latest logram release](https://github.com/mxseev/logram/releases/tag/latest)
3. Install it:
- .deb based Linux: `sudo dpkg -i logram-...amd64.deb`
- .rpm based Linux: `sudo rpm -i logram-...x86_64.rpm`
- .deb based Linux: `sudo dpkg -i logram-...amd64.deb`
- .rpm based Linux: `sudo rpm -i logram-...x86_64.rpm`
4. Find out the chat id with your bot (see [`docs/chat_id.md`](docs/chat_id.md))
5. Change the config (`/etc/logram.yaml` in Linux) (see [`docs/config.md`](docs/config.md))
6. Run logram: `sudo systemctl start logram`
Expand All @@ -19,11 +19,11 @@ Also logram can work with `log`, see [`docs/lib.md`](docs/lib.md) for detals.
If you need to build a logram manually, do this:
1. Clone repo: `git clone git@github.com:mxseev/logram.git`
2. Choose the features you want:
- `bin_core` - required for all log sources
- `ls_counter` - Counter log source
- `ls_filesystem` - Filesystem log source
- `ls_journald` - Journald log source
- `ls_docker` - Docker log source
- `bin_core` - required for all log sources
- `ls_counter` - Counter log source
- `ls_filesystem` - Filesystem log source
- `ls_journald` - Journald log source
- `ls_docker` - Docker log source
3. Build the project with these features: `cargo build --release --features=bin_core,ls_filesystem`

Optionally you can build `.deb` package, for them install [`cargo-deb`](https://github.com/mmstick/cargo-deb), edit `package.metadata.deb.features` in `Cargo.toml`, build with `cargo deb` and use `target/debian/logram_..._amd64.deb`. Also you can build `.rpm` package with [`cargo-generate-rpm`](https://github.com/cat-in-136/cargo-generate-rpm): build project with `cargo build ...`, strip debug symbols with `strip -s target/release/logram`, build `.rpm` package with `cargo generate-rpm` and use `target/generate-rpm/logram-...x86_64.rpm`.

0 comments on commit f42189e

Please sign in to comment.