Files
khadhroony-solana-project/crates/ksp-app-store-desk/src/logging_runtime.rs
2026-09-03 10:44:49 +02:00

11 lines
499 B
Rust

// file: crates/ksp-app-store-desk/src/logging_runtime.rs
// version: 1
//! Store Desk Logging runtime identity helpers.
/// Creates the stable runtime identity for this Store Desk process launch.
pub(crate) fn launch_identity() -> ksp_core_lib::Result<ksp_logging_lib::LoggingRuntimeIdentity> {
let timestamp = format!("{}-p{}", chrono::Utc::now().format("%Y%m%d-%H%M%S%.3fZ"), std::process::id());
return ksp_logging_lib::LoggingRuntimeIdentity::new(crate::TRACING_TARGET, timestamp);
}