pub struct LoggingSystemHandler { /* private fields */ }Expand description
Production logging handler for production use
This handler provides system logging by delegating to external logging services. It is stateless and does not maintain in-memory buffers.
Note: Complex log aggregation and multi-component coordination has been
moved to LoggingCoordinator in aura-protocol (Layer 4). This handler provides
only stateless logging operations. For coordination capabilities, wrap this handler
with aura_protocol::handlers::LoggingCoordinator.
Implementations§
Source§impl LoggingSystemHandler
impl LoggingSystemHandler
Sourcepub fn new(config: LoggingConfig) -> Self
pub fn new(config: LoggingConfig) -> Self
Create a new logging system handler
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create with default configuration
Sourcepub fn new_real(config: LoggingConfig) -> Self
pub fn new_real(config: LoggingConfig) -> Self
Create a new logging system handler
Sourcepub async fn log_structured(
&self,
level: LogLevel,
component: ComponentId,
message: &str,
metadata: HashMap<String, Value>,
session_id: Option<SessionId>,
device_id: Option<DeviceId>,
trace_id: Option<Uuid>,
) -> Result<(), SystemError>
pub async fn log_structured( &self, level: LogLevel, component: ComponentId, message: &str, metadata: HashMap<String, Value>, session_id: Option<SessionId>, device_id: Option<DeviceId>, trace_id: Option<Uuid>, ) -> Result<(), SystemError>
Log a structured message
Sourcepub async fn audit_log(
&self,
event_type: &str,
actor: Option<DeviceId>,
resource: &str,
action: AuditAction,
outcome: &str,
metadata: HashMap<String, Value>,
session_id: Option<SessionId>,
) -> Result<(), SystemError>
pub async fn audit_log( &self, event_type: &str, actor: Option<DeviceId>, resource: &str, action: AuditAction, outcome: &str, metadata: HashMap<String, Value>, session_id: Option<SessionId>, ) -> Result<(), SystemError>
Log an audit event
Sourcepub async fn get_recent_logs(&self, count: usize) -> Vec<LogEntry>
pub async fn get_recent_logs(&self, count: usize) -> Vec<LogEntry>
Get recent logs (stateless - delegates to external service)
Sourcepub async fn get_recent_audit_logs(&self, count: usize) -> Vec<AuditEntry>
pub async fn get_recent_audit_logs(&self, count: usize) -> Vec<AuditEntry>
Get recent audit logs (stateless - delegates to external service)
Sourcepub async fn get_statistics(&self) -> LoggingStats
pub async fn get_statistics(&self) -> LoggingStats
Get logging statistics (stateless - delegates to external service)
Trait Implementations§
Source§impl Clone for LoggingSystemHandler
impl Clone for LoggingSystemHandler
Source§fn clone(&self) -> LoggingSystemHandler
fn clone(&self) -> LoggingSystemHandler
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more