Module debug

Module debug 

Source
Expand description

Centralized debug logging with feature flag control

This module provides conditional logging macros that are only compiled when the debug feature is enabled. This allows release builds to completely exclude debug/info logging for zero runtime overhead.

§Usage

use crate::debug::{debug_log, info_log};

debug_log!("This is a debug message: {}", value);
info_log!("This is an info message: {}", value);

The macros expand to nothing when the debug feature is not enabled, ensuring zero runtime overhead in release builds.