pub fn init_structured_logging(
config: &StructuredLoggingConfig,
service_name: &str,
environment: &str,
log_level: &str,
) -> Result<LogBuffer, Error>Expand description
Initialize structured logging with JSON output
§Arguments
config- Logging configurationservice_name- Name of the service for log labelsenvironment- Environment name (dev, staging, prod)log_level- Log level (trace, debug, info, warn, error)
§Returns
Returns a log buffer handle for accessing aggregated logs