Function rocket_sentry_logger::add_data [−][src]
pub fn add_data(key: &str, data: Value)
Allows you to set extra data about the message.
logger::add_data("Response body", json!(body)); logger::log("Bad Request: name field required", LogLevel::Error);