1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-07-01 18:51:04 +02:00

feat(logging): IRONBAR_LOG and IRONBAR_FILE_LOG env vars

This commit is contained in:
Jake Stanger 2022-10-16 13:42:59 +01:00
parent 70e1b526a9
commit ec1d59677b
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61
3 changed files with 15 additions and 5 deletions

View file

@ -1,6 +1,6 @@
# Ironbar
Ironbar is a customisable and feature-rich bar targeting wlroots compositors, written in Rust.
Ironbar is a customisable and feature-rich bar for wlroots compositors, written in Rust.
It uses GTK3 and gtk-layer-shell.
The bar can be styled to your liking using CSS and hot-loads style changes.
@ -8,9 +8,8 @@ For information and examples on styling please see the [wiki](https://github.com
![Screenshot of fully configured bar with MPD widget open](https://user-images.githubusercontent.com/5057870/184539623-92d56a44-a659-49a9-91f9-5cdc453e5dfb.png)
## Installation
Run using `ironbar`.
## Installation
### Cargo
@ -42,6 +41,15 @@ install target/release/ironbar ~/.local/bin/ironbar
[repo](https://github.com/jakestanger/ironbar)
## Running
All of the above installation methods provide a binary called `ironbar`.
You can set the `IRONBAR_LOG` or `IRONBAR_FILE_LOG` environment variables to
`error`, `warn`, `info`, `debug` or `trace` to configure the log output level.
These default to `IRONBAR_LOG=info` and `IRONBAR_FILE_LOG=error`.
File output can be found at `~/.local/share/ironbar/error.log`.
## Configuration
Ironbar gives a lot of flexibility when configuring, including multiple file formats