Expand description
Structured Logging
Provides structured logging with kernel context for production debugging.
§Features
- JSON structured output for log aggregation
- Context propagation (trace IDs, tenant IDs)
- Per-domain log levels
- Audit logging for security events
§Example
ⓘ
use rustkernel_core::observability::logging::{LogConfig, StructuredLogger};
let config = LogConfig::production();
config.init()?;
StructuredLogger::info()
.kernel("graph/pagerank")
.tenant("tenant-123")
.message("Kernel execution completed")
.field("latency_us", 150)
.log();Structs§
- Audit
Log - Audit log entry for security-relevant events
- LogConfig
- Logging configuration
- Structured
Logger - Structured logger builder
Enums§
- Audit
Event Type - Audit event types
- Audit
Result - Audit result
- LogLevel
- Log level
- LogOutput
- Log output target