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 PartialOrd for Level
impl PartialOrd for Level
impl Copy for Level
impl Eq for Level
impl StructuralPartialEq for Level
Auto Trait Implementations§
impl Freeze for Level
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