1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Shared logging library with structured logging, context propagation, redaction, and HTTP middleware.
//!
//! # Features
//!
//! - Structured logger wrapper with consistent field names
//! - Context propagation: trace_id, span_id, request_id, user_id, tenant_id
//! - Redaction helpers for PII, secrets, and tokens
//! - Standard event schema with consistent field names and error formatting
//! - HTTP middleware for request ID injection and request lifecycle logging
//! - Optional OpenTelemetry log correlation
//!
//! # Example
//!
//! ```no_run
//! use shared_logging::{init_logger, Logger};
//!
//! // Initialize the logger
//! init_logger("my-service", "info").unwrap();
//!
//! // Create a logger instance
//! let logger = Logger::new("my-module");
//!
//! // Log with context
//! logger.info("User logged in", |e| {
//! e.field("user_id", "user123");
//! });
//! ```
pub use ;
pub use ;
pub use ;
pub use ;