pub struct LogConfiguration { /* private fields */ }Expand description
A single configuration for a destination
Implementations§
Source§impl LogConfiguration
impl LogConfiguration
Sourcepub fn new(destination: LogDestination) -> Self
pub fn new(destination: LogDestination) -> Self
Constructs a single logging input with a desired destination. System logs will be at default level (INFO).
Sourcepub fn with_log_level(self, log_level: LevelFilter) -> Self
pub fn with_log_level(self, log_level: LevelFilter) -> Self
Constructs a single logging input with a desired destination as well as a specified logs filter.
Sourcepub fn with_system_log_level(self, system_log_level: LevelFilter) -> Self
pub fn with_system_log_level(self, system_log_level: LevelFilter) -> Self
Constructs a single logging input with a desired destination as well as a specified system logs filter.
Trait Implementations§
Source§impl From<LogConfiguration> for ConfigureLoggingInput
impl From<LogConfiguration> for ConfigureLoggingInput
Source§fn from(value: LogConfiguration) -> Self
fn from(value: LogConfiguration) -> Self
Converts to this type from the input type.
Source§impl From<LogDestination> for LogConfiguration
impl From<LogDestination> for LogConfiguration
Source§fn from(value: LogDestination) -> Self
fn from(value: LogDestination) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LogConfiguration
impl RefUnwindSafe for LogConfiguration
impl Send for LogConfiguration
impl Sync for LogConfiguration
impl Unpin for LogConfiguration
impl UnwindSafe for LogConfiguration
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