Struct cute_log::Logger [−][src]
Simple Logger implementation
It provides logger without filtering with following format:
<level> [<date and time>] {<file>:<line>} - <args>
Timestamp is only used on std
environment aside from Android.
Implementations
impl Logger
[src]
pub fn print_fmt(args: Arguments<'_>)
[src]
Prints to stdout
as it is
pub fn print(record: &Record<'_>)
[src]
Logger printer.
impl Logger
[src]
pub const fn new() -> Self
[src]
Creates new instance.
pub fn set_max_level(&self, level: LevelFilter)
[src]
Sets log
max level, controlling which level to print at most.
By default it is off.
pub fn set_logger(&'static self) -> Result<(), SetLoggerError>
[src]
Initialize self as log
global logger.
pub fn set_logger_debug(&'static self) -> Result<(), SetLoggerError>
[src]
Initialize self as log
global logger in debug mode only.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Logger
impl Send for Logger
impl Sync for Logger
impl Unpin for Logger
impl UnwindSafe for Logger
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,