pub struct LoggingConfig {
pub service_name: String,
pub service_version: String,
pub environment: String,
pub format: LogFormat,
pub level: String,
}Expand description
Logging configuration for Minifly services
Fields§
§service_name: String§service_version: String§environment: String§format: LogFormat§level: StringImplementations§
Source§impl LoggingConfig
impl LoggingConfig
Sourcepub fn with_format(self, format: LogFormat) -> Self
pub fn with_format(self, format: LogFormat) -> Self
Set the log format
Sourcepub fn with_level(self, level: &str) -> Self
pub fn with_level(self, level: &str) -> Self
Set the log level
Sourcepub fn with_environment(self, environment: &str) -> Self
pub fn with_environment(self, environment: &str) -> Self
Set the environment
Trait Implementations§
Source§impl Clone for LoggingConfig
impl Clone for LoggingConfig
Source§fn clone(&self) -> LoggingConfig
fn clone(&self) -> LoggingConfig
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 LoggingConfig
impl Debug for LoggingConfig
Auto Trait Implementations§
impl Freeze for LoggingConfig
impl RefUnwindSafe for LoggingConfig
impl Send for LoggingConfig
impl Sync for LoggingConfig
impl Unpin for LoggingConfig
impl UnsafeUnpin 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