pub struct TelemetryConfig {
pub log_dir: Option<PathBuf>,
pub file_prefix: String,
pub level_filter: String,
pub format: LogFormat,
pub rotation_keep_days: u16,
pub service_name: &'static str,
pub level_explicit: bool,
pub format_explicit: bool,
pub rotation_keep_days_explicit: bool,
pub file_prefix_explicit: bool,
pub log_dir_explicit: bool,
pub log_file_disabled: bool,
}Fields§
§log_dir: Option<PathBuf>Directory for rotating log files. None = stderr-only (CLI
one-shot / embedded default).
file_prefix: StringPrefix for rotated files; defaults to "reddb.log" when empty.
level_filter: StringRUST_LOG-style filter expression. Example:
"info,reddb::wire=debug".
format: LogFormatstderr output format. File output always matches.
rotation_keep_days: u16How many rotated files to keep (older ones deleted by janitor).
service_name: &'static strService name stamped on every record under the service field.
level_explicit: boolPer-invocation intent flags — set by the CLI parser to record
which fields the operator explicitly passed. The config merge
(red_config → CLI) uses these to decide whether a persisted
red.logging.* value should be promoted.
Not serialised; always recomputed per process start.
format_explicit: bool§rotation_keep_days_explicit: bool§file_prefix_explicit: bool§log_dir_explicit: bool§log_file_disabled: bool--no-log-file was passed: file sink must stay off regardless
of red.logging.dir.
Trait Implementations§
Source§impl Clone for TelemetryConfig
impl Clone for TelemetryConfig
Source§fn clone(&self) -> TelemetryConfig
fn clone(&self) -> TelemetryConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TelemetryConfig
impl Debug for TelemetryConfig
Auto Trait Implementations§
impl Freeze for TelemetryConfig
impl RefUnwindSafe for TelemetryConfig
impl Send for TelemetryConfig
impl Sync for TelemetryConfig
impl Unpin for TelemetryConfig
impl UnsafeUnpin for TelemetryConfig
impl UnwindSafe for TelemetryConfig
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,
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request