pub enum Level {
TRACE,
DEBUG,
INFO,
WARN,
ERROR,
}Expand description
Used for specifying the Logging Level
Example:
use aul::log;
use aul::level::Level;
log!(Level::INFO,"Hello")
// [INFO]: HelloVariants§
TRACE
Designated for low priority, verbose information
For Example: Tracing method calls
DEBUG
Designated for lower priority information
For Example: Value of a specific variable
INFO
Designated for useful information
For Example: User connected with your server
WARN
Designated for “hazardous” information
For Example: Server didn’t find setup file and use defaults
ERROR
Designated for very serious errors
For Example: Subprocess exited with abnormal exit code
Trait Implementations§
source§impl Ord for Level
impl Ord for Level
source§impl PartialEq for Level
impl PartialEq for Level
source§impl PartialOrd for Level
impl PartialOrd for Level
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for Level
impl Eq for Level
impl StructuralEq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl RefUnwindSafe for Level
impl Send for Level
impl Sync for Level
impl Unpin for Level
impl UnwindSafe for Level
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