Struct File LogRotation Config

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

1pub struct FileLogRotationConfig { /* private fields */ }

Size-based rotation settings for a file log sink.

retained_files counts previous log files and excludes the active file.

Implementations

impl FileLogRotationConfig

impl FileLogRotationConfig

new

pub fn new(max_file_size_bytes: u64, retained_files: usize) -> Result<Self>

Creates validated size-based rotation settings.

max_file_size_bytes

pub fn max_file_size_bytes(self) -> u64

Maximum active file size before the next record triggers rotation.

retained_files

pub fn retained_files(self) -> usize

Number of previous log files retained in addition to the active file.

Trait Implementations

impl Clone for FileLogRotationConfig

impl Clone for FileLogRotationConfig

clone

fn clone(&self) -> FileLogRotationConfig

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for FileLogRotationConfig

impl Debug for FileLogRotationConfig

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl PartialEq for FileLogRotationConfig

impl PartialEq for FileLogRotationConfig

eq

fn eq(&self, other: &FileLogRotationConfig) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Copy for FileLogRotationConfig

impl Copy for FileLogRotationConfig

impl Eq for FileLogRotationConfig

impl Eq for FileLogRotationConfig

impl StructuralPartialEq for FileLogRotationConfig

impl StructuralPartialEq for FileLogRotationConfig