pub struct AuditLogParams {
pub log_dir: PathBuf,
pub max_file_size: u64,
pub back_pressure: usize,
pub compression_level: i32,
pub max_segment_duration: Option<Duration>,
pub min_free_space: MinFree,
pub min_free_inodes: MinFree,
pub log_authz_allow: bool,
pub log_authz_deny: bool,
pub log_authn_ok: bool,
pub log_authn_fail: bool,
}Fields§
§log_dir: PathBufWhere to place the log files
max_file_size: u64How many uncompressed bytes to allow per file segment
back_pressure: usizeMaximum number of outstanding items to be logged before the submission will block; helps to avoid runaway issues spiralling out of control.
compression_level: i32The level of compression. 0 - use the zstd default level (probably 3). 1-21 are the explicitly configurable levels
max_segment_duration: Option<Duration>§min_free_space: MinFree§min_free_inodes: MinFree§log_authz_allow: boolLog records for successfully granted authz
log_authz_deny: boolLog records for denied authz
log_authn_ok: boolLog records for successful authn
log_authn_fail: boolLog records for failed authn
Implementations§
Source§impl AuditLogParams
impl AuditLogParams
pub fn default_max_file_size() -> u64
pub fn default_back_pressure() -> usize
pub fn default_compression_level() -> i32
pub fn default_true() -> bool
pub async fn init(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for AuditLogParams
impl Clone for AuditLogParams
Source§fn clone(&self) -> AuditLogParams
fn clone(&self) -> AuditLogParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuditLogParams
impl Debug for AuditLogParams
Source§impl<'de> Deserialize<'de> for AuditLogParams
impl<'de> Deserialize<'de> for AuditLogParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuditLogParams
impl RefUnwindSafe for AuditLogParams
impl Send for AuditLogParams
impl Sync for AuditLogParams
impl Unpin for AuditLogParams
impl UnwindSafe for AuditLogParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more