pub struct LogConsole {
pub target: ConsoleTarget,
pub level: Level,
pub format: LogFormat,
}Expand description
Log config for output to console
§Example
source of crate::recipe::console_logger()
use captains_log::*;
pub fn console_logger(target: ConsoleTarget, max_level: Level) -> Builder {
let console_config = LogConsole::new(target, max_level, recipe::LOG_FORMAT_DEBUG);
return Builder::default().add_sink(console_config);
}Fields§
§target: ConsoleTarget§level: Levelmax log level in this file
format: LogFormatImplementations§
Source§impl LogConsole
impl LogConsole
pub fn new(target: ConsoleTarget, level: Level, format: LogFormat) -> Self
Trait Implementations§
Source§impl Hash for LogConsole
impl Hash for LogConsole
Source§impl SinkConfigTrait for LogConsole
impl SinkConfigTrait for LogConsole
Auto Trait Implementations§
impl Freeze for LogConsole
impl RefUnwindSafe for LogConsole
impl Send for LogConsole
impl Sync for LogConsole
impl Unpin for LogConsole
impl UnwindSafe for LogConsole
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