Constant MAX_FILE_SINK_RETAINED_FILES

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.

pub const MAX_FILE_SINK_RETAINED_FILES: usize = 9;

Fixed hard maximum number of retained backup files per rotating file sink.

Size-based rotation renames existing backup files on each rotation, so an unbounded value can make one log write perform excessive filesystem work. This limit counts backup files and does not include the active log file.