Just include prima_rs_logger = "^0.1"
in your Cargo.toml
There are two different type of guards: - term guard => log stuff as plain string - json guard => encode everything in json format
```rust use primarslogger::{info, GuardLoggerCell};
// Singleton logger. Used to free user from manually passing Logger objects around. static LOGGER_GUARD: GuardLoggerCell = GuardLoggerCell::new();
fn main() { let appname: &str = "myapp"; let guard = primarslogger::termguard(appname); LOGGERGUARD.set(guard).expect("Cannot set global logger guard");
info!("Starting {}", app_name; "meta" => "data");
} ```