use tracing::info;
pub struct Effects;
impl Effects {
pub fn log_transition(session_id: &str, from_state: &str, to_state: &str, event: &str) {
info!(
"Session {} transitioned from {} to {} via {}",
session_id, from_state, to_state, event
);
}
pub fn record_metrics(session_id: &str, state: &str, duration_ms: u64) {
tracing::debug!(
"Metrics recorded - Session: {}, State: {}, Duration: {}ms",
session_id,
state,
duration_ms
);
}
pub async fn notify_handlers(session_id: &str, event: &str) {
tracing::debug!(
"Event notification sent - Session: {}, Event: {}",
session_id,
event
);
}
}