pub struct AuditConfig { /* private fields */ }Expand description
Per-module audit configuration. Application layer can only select from predefined presets or set individual module levels. No raw logging API is exposed.
Implementations§
Source§impl AuditConfig
impl AuditConfig
Sourcepub fn new(io_level: AuditLevel, compute_level: AuditLevel) -> Self
pub fn new(io_level: AuditLevel, compute_level: AuditLevel) -> Self
Create a new AuditConfig with explicit default levels.
Sourcepub fn silent_all() -> Self
pub fn silent_all() -> Self
Everything silent. Use in CI/test environments or when you want zero audit overhead.
Sourcepub fn production() -> Self
pub fn production() -> Self
Production defaults: IO = Full, Security = Summary, Compute = Silent.
Sourcepub fn focus_on(module: Module) -> Self
pub fn focus_on(module: Module) -> Self
Focus on a single module with Full audit, silence everything else. Ideal for development: only see what you care about.
Sourcepub fn focus_on_many(modules: &[Module]) -> Self
pub fn focus_on_many(modules: &[Module]) -> Self
Focus on multiple modules, silence everything else.
Sourcepub fn verbose_all() -> Self
pub fn verbose_all() -> Self
Everything at Full. Use for deep debugging sessions.
Sourcepub fn enable(self, module: Module, level: AuditLevel) -> Self
pub fn enable(self, module: Module, level: AuditLevel) -> Self
Set a specific module’s audit level. Returns self for chaining.
Sourcepub fn silence(self, module: Module) -> Self
pub fn silence(self, module: Module) -> Self
Silence a specific module. Returns self for chaining.
Sourcepub fn level_for(&self, module: Module) -> AuditLevel
pub fn level_for(&self, module: Module) -> AuditLevel
Returns the effective audit level for a given module. Framework infrastructure calls this internally to decide whether to log. Application code never calls this.
Trait Implementations§
Source§impl Clone for AuditConfig
impl Clone for AuditConfig
Source§fn clone(&self) -> AuditConfig
fn clone(&self) -> AuditConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more