🔊 Log to journald

This commit is contained in:
Lucy 2022-07-11 11:25:34 -04:00
parent 07c811ba97
commit 7be35d6153
No known key found for this signature in database
GPG key ID: EBC517FAD666BBF1
3 changed files with 18 additions and 4 deletions

View file

@ -19,6 +19,7 @@ async fn main() -> Result<()> {
color_eyre::install().wrap_err("failed to install color_eyre error handler")?;
tracing_subscriber::registry()
.with(tracing_journald::layer().wrap_err("failed to connect to journald")?)
.with(fmt::layer())
.with(
EnvFilter::builder()