pub enum FileLogSettings {
Disabled,
Enabled {
common_settings: Settings,
file_log_dir: PathBuf,
rotation_period: Rotation,
filename_suffix: String,
max_log_files: Option<usize>,
},
}
Expand description
Configure specific settings for the File Log subscriber.
Variants§
Trait Implementations§
Source§impl Debug for FileLogSettings
impl Debug for FileLogSettings
Source§impl Default for FileLogSettings
impl Default for FileLogSettings
Source§fn default() -> FileLogSettings
fn default() -> FileLogSettings
Returns the “default value” for a type. Read more
Source§impl<T> From<Option<T>> for FileLogSettingswhere
T: Into<FileLogSettings>,
impl<T> From<Option<T>> for FileLogSettingswhere
T: Into<FileLogSettings>,
Source§impl PartialEq for FileLogSettings
impl PartialEq for FileLogSettings
Source§impl SettingsToggle for FileLogSettings
impl SettingsToggle for FileLogSettings
Source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Whether the settings are enabled or not.
Source§fn is_disabled(&self) -> bool
fn is_disabled(&self) -> bool
The opposite of SettingsToggle::is_enabled as a helper.
impl StructuralPartialEq for FileLogSettings
Auto Trait Implementations§
impl Freeze for FileLogSettings
impl RefUnwindSafe for FileLogSettings
impl Send for FileLogSettings
impl Sync for FileLogSettings
impl Unpin for FileLogSettings
impl UnwindSafe for FileLogSettings
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§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> 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