Struct humphrey_server::config::config::LoggingConfig
source · pub struct LoggingConfig {
pub level: LogLevel,
pub console: bool,
pub file: Option<String>,
}
Expand description
Represents configuration for the logger.
Fields§
§level: LogLevel
The level of logging
console: bool
Whether to log to the console
file: Option<String>
The path to the log file
Trait Implementations§
source§impl Clone for LoggingConfig
impl Clone for LoggingConfig
source§fn clone(&self) -> LoggingConfig
fn clone(&self) -> LoggingConfig
Returns a copy of the value. Read more
1.0.0 · 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 LoggingConfig
impl Debug for LoggingConfig
source§impl Default for LoggingConfig
impl Default for LoggingConfig
source§impl PartialEq for LoggingConfig
impl PartialEq for LoggingConfig
source§fn eq(&self, other: &LoggingConfig) -> bool
fn eq(&self, other: &LoggingConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LoggingConfig
impl StructuralEq for LoggingConfig
impl StructuralPartialEq for LoggingConfig
Auto Trait Implementations§
impl RefUnwindSafe for LoggingConfig
impl Send for LoggingConfig
impl Sync for LoggingConfig
impl Unpin for LoggingConfig
impl UnwindSafe for LoggingConfig
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