pub struct LoggingConfig {
pub enabled: Option<bool>,
pub path: Option<String>,
pub max_size_mb: Option<u64>,
pub max_files: Option<usize>,
pub retention_days: Option<u32>,
pub structured: Option<bool>,
pub level: Option<String>,
pub rotation: Option<String>,
pub filename_prefix: Option<String>,
}Expand description
[logging] block in config.toml. Every field is Option; missing
fields fall back to the documented defaults.
Fields§
§enabled: Option<bool>Master toggle. Default false.
path: Option<String>Directory for rotated logs. Default ~/.local/state/ai-memory/logs/.
max_size_mb: Option<u64>Soft cap on a single rotated file (advisory — informs rotation
configuration; the appender enforces this via the chosen
rotation cadence). Default 100.
max_files: Option<usize>Maximum number of rotated files retained on disk. Default 30.
retention_days: Option<u32>Days of log history to keep before ai-memory logs archive
would compress them. Default 90.
structured: Option<bool>Emit JSON lines instead of the human-readable fmt layer. Default false.
level: Option<String>Tracing level / EnvFilter directive. Default "info".
rotation: Option<String>Rotation policy: minutely | hourly | daily | never. Default "daily".
filename_prefix: Option<String>Override the rotated-file prefix. Default "ai-memory.log".
Trait Implementations§
Source§impl Clone for LoggingConfig
impl Clone for LoggingConfig
Source§fn clone(&self) -> LoggingConfig
fn clone(&self) -> LoggingConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LoggingConfig
impl Debug for LoggingConfig
Source§impl Default for LoggingConfig
impl Default for LoggingConfig
Source§fn default() -> LoggingConfig
fn default() -> LoggingConfig
Source§impl<'de> Deserialize<'de> for LoggingConfig
impl<'de> Deserialize<'de> for LoggingConfig
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>,
Auto Trait Implementations§
impl Freeze for LoggingConfig
impl RefUnwindSafe for LoggingConfig
impl Send for LoggingConfig
impl Sync for LoggingConfig
impl Unpin for LoggingConfig
impl UnsafeUnpin for LoggingConfig
impl UnwindSafe for LoggingConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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