Skip to main content

Module logging

Module logging 

Source
Expand description

Structured log entry for internal forensics.

§Critical Security Properties

  • Borrows from AgentError with explicit lifetime
  • CANNOT outlive the error that created it
  • Forces immediate consumption by logger
  • NO heap allocations in accessors
  • NO leaked memory
  • NO escaped references

This structure exists only during the logging call and is destroyed immediately afterward, ensuring all sensitive data is zeroized when the error drops.

The short lifetime is a FEATURE, not a limitation. It enforces that sensitive data cannot be retained beyond its intended scope.

Structs§

ContextField
Metadata value wrapper with zeroization for owned data.
InternalLog
Structured log entry with borrowed data from AgentError.