pub fn warn_with(message: &str, data: impl Into<Value>)Expand description
Logs a message at the WARN level with additional structured metadata.
This function is useful for highlighting warnings while attaching extra information, such as rate limit states or configuration drift. A UTC timestamp is automatically injected.
ยงExample
use tincre_logger::logger;
use serde_json::json;
logger::warn_with("Cache miss", json!({ "key": "homepage", "attempts": 2 }));