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
//! Trait definition for pluggable audit logging.
//!
//! This trait allows consumers of `pipa-core` to provide their own
//! logging implementation (e.g., JSONL files, DuckDB, in-memory, etc.).
use crateAuditLogEntry;
/// Trait for audit logging implementations.
///
/// Implementors can store audit logs in any backend they choose:
/// - JSONL files (default CLI behavior)
/// - DuckDB (for containerized service)
/// - In-memory (for testing)
/// - Remote logging services
///
/// The trait is `Send + Sync` to allow usage in async contexts
/// and across threads.