pub struct Apollo {
pub logging_level: Levels,
}Fields§
§logging_level: LevelsImplementations§
Source§impl Apollo
impl Apollo
Sourcepub fn new() -> Apollo
pub fn new() -> Apollo
Creates a new Apollo instance
§Examples
use crate::apollo_logger::Apollo;
let l = Apollo::new(); // The default logging level is Debug
l.debug("This message will be printed");
l.warn("This message will also be printed");If you require a different logging level, please use the following code instead
use crate::apollo_logger::Apollo;
use crate::apollo_logger::levels::Levels;
let l = Apollo { logging_level: Levels::INFO };
l.debug("This message will NOT printed");
l.warn("This message will be printed");Trait Implementations§
Auto Trait Implementations§
impl Freeze for Apollo
impl RefUnwindSafe for Apollo
impl Send for Apollo
impl Sync for Apollo
impl Unpin for Apollo
impl UnwindSafe for Apollo
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