mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 11:24:45 +08:00
Co-authored-by: Sangamesh <sangamesh.kulkarni@juspay.in> Co-authored-by: sai harsha <sai.harsha@sai.harsha-MacBookPro> Co-authored-by: Arun Raj M <jarnura47@gmail.com>
router_env
Environment of payment router: logger, basic config, its environment awareness.
Example
#[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",
);
}
Files Tree Layout
├── src : source code
│ └── logger : logger
└── tests : unit and integration tests
└── test_module : unit and integration tests