Skip to main content

Module debug

Module debug 

Source
Expand description

Debug logging utilities for spikard-http

This module provides debug logging that can be enabled via:

  • Building in debug mode (cfg(debug_assertions))
  • Setting SPIKARD_DEBUG=1 environment variable

Functionsยง

init
Initialize debug logging based on environment and build mode
is_enabled
Check if debug logging is enabled