mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 03:13:56 +08:00
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Gaurav Rawat <104276743+GauravRawat369@users.noreply.github.com>
router_env
Environment of payment router: logger, basic config, its environment awareness.
Example
use router_env::logger;
use tracing::{self, instrument};
#[instrument]
pub fn sample() -> () {
logger::log!(
logger::Level::INFO,
payment_id = 8565654,
payment_attempt_id = 596456465,
merchant_id = 954865,
tag = ?logger::Tag::ApiIncomingRequest,
category = ?logger::Category::Api,
flow = "some_flow",
session_id = "some_session",
);
}