Expand description
§Rust Secure Logger
A production-ready, memory-safe logging library for financial systems and critical infrastructure.
§Features
- Memory Safety: Built with Rust’s ownership system to prevent buffer overflows and memory corruption
- Thread Safety: Concurrent logging without data races using Arc
- Cryptographic Integrity: SHA-256 hashing for tamper detection
- File Persistence: Log rotation and disk persistence
- SIEM Integration: CEF, LEEF, Syslog, and Splunk HEC formats
- Compliance Reporting: SOX, GLBA, PCI-DSS automated reports
- Audit Trail: Immutable log entries with timestamps
§Alignment with Federal Guidance
This library aligns with 2024 CISA/FBI guidance recommending memory-safe languages for critical infrastructure to eliminate 70% of security vulnerabilities.
§Quick Start
use rust_secure_logger::SecureLogger;
let logger = SecureLogger::new();
logger.info("Application started");
logger.audit("User authentication successful", Some(serde_json::json!({
"user_id": "12345",
"ip_address": "192.168.1.100"
})));Re-exports§
pub use entry::LogEntry;pub use entry::SecurityLevel;pub use persistence::LogWriter;pub use persistence::PersistenceConfig;pub use formats::CEFFormatter;pub use formats::LEEFFormatter;pub use formats::SyslogFormatter;pub use formats::SplunkFormatter;pub use compliance::ComplianceFramework;pub use compliance::ComplianceReport;pub use compliance::ComplianceReporter;
Modules§
- compliance
- Compliance reporting for SOX, GLBA, PCI-DSS
- entry
- Log entry structure with cryptographic integrity
- formats
- SIEM export formats (CEF, LEEF, Syslog)
- persistence
- Log persistence to disk with rotation and compression
Structs§
- LogStatistics
- Statistics about log entries
- Secure
Logger - Thread-safe secure logger for financial systems