Function debug_with

Source
pub fn debug_with(message: &str, data: impl Into<Value>)
Expand description

Logs a message at the DEBUG level with additional structured metadata.

By default, debug messages are hidden. They can be enabled by setting the RUST_LOG environment variable (e.g., RUST_LOG=debug). A UTC timestamp is automatically injected.

ยงExample

use tincre_logger::logger;
use serde_json::json;

// To see this message, run your application with `RUST_LOG=debug`
logger::debug_with("Loaded config", json!({ "env": "dev", "debug_mode": true }));