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
45
46
47
48
49
50
51
//! [`LogAudit`] — `tracing`-backed audit sink.
//!
//! Gated behind the `monitor-tracing` Cargo feature (which brings the
//! `tracing` dependency that both [`crate::LogMonitor`] and `LogAudit`
//! depend on). Emits structured events at `info!` level on the
//! `key_vault::audit` target.
use ;
/// `AuditSink` implementation that emits structured `tracing` events.
///
/// Construct with [`LogAudit::new`]; stateless and cheap to clone.
/// Each emitted event becomes a `tracing` log entry at `info!` level
/// with structured fields suitable for filtering in
/// `tracing-subscriber`.
///
/// # Examples
///
/// ```
/// use key_vault::{KeyVaultBuilder, LogAudit};
///
/// let _vault = KeyVaultBuilder::new()
/// .with_audit_sink(LogAudit::new())
/// .build();
/// ```
;