Files
Apoorv Dixit 365f5680b7 feat(disputes): add filters for disputes list (#5637)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
2024-09-22 18:09:37 +00:00
..
2024-08-12 10:00:05 +00:00

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",
    );
}