pub struct ColorConfig {
pub level_trace: Color,
pub level_debug: Color,
pub level_info: Color,
pub level_warn: Color,
pub level_error: Color,
pub timestamp: Color,
pub target: Color,
pub continuation: Color,
pub message: Color,
}Expand description
Color configuration for the logger
Fields§
§level_trace: ColorColor for the TRACE level. Default: Blue
level_debug: ColorColor for the DEBUG level. Default: Cyan
level_info: ColorColor for the INFO level. Default: Green
level_warn: ColorColor for the WARN level. Default: Yellow
level_error: ColorColor for the ERROR level. Default: Red
timestamp: ColorColor for the timestamp field. Default: #767676
target: ColorColor for the target field. Default: #AF5F5F
continuation: ColorColor for the continuation field. Default: #3A3A3A
message: ColorColor for the message field. Default: #FFFFFF
Implementations§
Source§impl ColorConfig
impl ColorConfig
Sourcepub const fn monochrome() -> Self
pub const fn monochrome() -> Self
Create a monochrome (e.g. all ‘white’) color configuration
Sourcepub const fn only_levels() -> Self
pub const fn only_levels() -> Self
Only the levels should have the default colors, the rest should be monochrome
Trait Implementations§
Source§impl Clone for ColorConfig
impl Clone for ColorConfig
Source§fn clone(&self) -> ColorConfig
fn clone(&self) -> ColorConfig
Returns a duplicate 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 ColorConfig
impl Debug for ColorConfig
Source§impl Default for ColorConfig
impl Default for ColorConfig
Source§impl From<ColorConfig> for Options
impl From<ColorConfig> for Options
Source§fn from(conf: ColorConfig) -> Self
fn from(conf: ColorConfig) -> Self
Converts to this type from the input type.
impl Copy for ColorConfig
Auto Trait Implementations§
impl Freeze for ColorConfig
impl RefUnwindSafe for ColorConfig
impl Send for ColorConfig
impl Sync for ColorConfig
impl Unpin for ColorConfig
impl UnwindSafe for ColorConfig
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