mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
Co-authored-by: hrithikesh026 <hrithikesh.vm@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: sai-harsha-vardhan <harsha111hero@gmail.com> Co-authored-by: Shankar Singh C <83439957+ShankarSinghC@users.noreply.github.com> Co-authored-by: spritianeja03 <146620839+spritianeja03@users.noreply.github.com> Co-authored-by: Spriti Aneja <spriti.aneja@juspay.in>
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",
);
}