Expand description
Custom tracing logger that outputs structured JSON logs
This crate provides a simple interface to initialize a JSON-formatted logger using the tracing ecosystem. All logs are output as structured JSON with metadata including timestamp, level, target, and message.
Modules§
- structured
- Structured logging helpers
Macros§
- log_
error - Convenience macro for error logging with context
- log_
request - Convenience macro for HTTP request logging
Functions§
- init
- Initialize the JSON logger
- print_
config - Print current logging configuration
- validate_
config - Validate current logging configuration without initializing