use loggix::{Fields, JSONFormatter, Logger};
fn main() {
let logger = Logger::new()
.formatter(JSONFormatter::new().pretty(true))
.build();
logger
.with_fields(Fields::new())
.with_field("transaction_id", "tx-9876")
.with_field("amount", 150.50)
.with_field("currency", "USD")
.with_field("status", "completed")
.info("Payment processed")
.unwrap();
}