agadir 0.1.0

Blogging over the terminal
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use anyhow::Result;
use tracing_subscriber;
use tracing_subscriber::fmt;

pub struct Tracing;

impl Tracing {
    pub fn init() -> Result<()> {
        let format = fmt::format().with_level(true).with_target(false).compact();
        tracing_subscriber::fmt().event_format(format).init();
        Ok(())
    }
}