unen_logging 0.0.3

Logging crate for UnnamedEngine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use unen_app::prelude::{AppState, CommandRegistry, System};

pub struct TracingLogger;

impl System for TracingLogger {
    fn execute(&mut self, state: AppState, _commands: &mut CommandRegistry) -> AppState {
        tracing_subscriber::fmt()
            .with_max_level(tracing::Level::INFO)
            .with_target(false)
            .with_level(true)
            .init();
        tracing::info!("Logger {} initialized.", self.name());

        state
    }
}