llm_config_audit/
lib.rs

1//! Audit logging infrastructure for LLM Config Manager
2//!
3//! This module provides comprehensive audit logging capabilities for tracking
4//! all configuration changes, access attempts, and system events.
5
6pub mod events;
7pub mod logger;
8pub mod storage;
9
10pub use events::{AuditEvent, AuditEventType, AuditSeverity};
11pub use logger::AuditLogger;
12pub use storage::{AuditStorage, FileAuditStorage};
13
14use thiserror::Error;
15
16#[derive(Debug, Error)]
17pub enum AuditError {
18    #[error("IO error: {0}")]
19    Io(#[from] std::io::Error),
20
21    #[error("Serialization error: {0}")]
22    Serialization(String),
23
24    #[error("Storage error: {0}")]
25    Storage(String),
26
27    #[error("Invalid event: {0}")]
28    InvalidEvent(String),
29}
30
31pub type Result<T> = std::result::Result<T, AuditError>;