pub struct ConsoleLogger {
pub include_timestamp: bool,
}Expand description
Console logger that outputs to stdout.
Simple logger for debugging and development.
Fields§
§include_timestamp: boolWhether to include timestamps.
Implementations§
Source§impl ConsoleLogger
impl ConsoleLogger
Sourcepub fn without_timestamp() -> Self
pub fn without_timestamp() -> Self
Create a console logger without timestamps.
Trait Implementations§
Source§impl Clone for ConsoleLogger
impl Clone for ConsoleLogger
Source§fn clone(&self) -> ConsoleLogger
fn clone(&self) -> ConsoleLogger
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 ConsoleLogger
impl Debug for ConsoleLogger
Source§impl Default for ConsoleLogger
impl Default for ConsoleLogger
Source§fn default() -> ConsoleLogger
fn default() -> ConsoleLogger
Returns the “default value” for a type. Read more
Source§impl LoggingBackend for ConsoleLogger
impl LoggingBackend for ConsoleLogger
Auto Trait Implementations§
impl Freeze for ConsoleLogger
impl RefUnwindSafe for ConsoleLogger
impl Send for ConsoleLogger
impl Sync for ConsoleLogger
impl Unpin for ConsoleLogger
impl UnwindSafe for ConsoleLogger
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more