pub enum SDKLogLevel {
Critical = 1,
Error = 2,
Warning = 3,
Info = 4,
Debug = 5,
Trace = 6,
}Expand description
SDK Log Level Enum
Variants§
Critical = 1
A critical error. Maps to “Error” in log crate.
Error = 2
A standard error. Maps to “Error” in log crate.
Warning = 3
A warning. Maps to “Warning in log crate.
Info = 4
An informative message. Logs to “Info” in log crate.
Debug = 5
A Debug message. Maps to “Debug” in log crate.
Trace = 6
A trace message Maps to “Trace” in log crate
Implementations§
Source§impl SDKLogLevel
impl SDKLogLevel
Source§impl SDKLogLevel
SDKLogLevel implementation
impl SDKLogLevel
SDKLogLevel implementation
Sourcepub fn max() -> SDKLogLevel
pub fn max() -> SDKLogLevel
Returns max logging level available.
§Example
use celp_sdk::logger::SDKLogLevel;
let max_level = SDKLogLevel::max();Sourcepub fn min() -> SDKLogLevel
pub fn min() -> SDKLogLevel
Returns min logging level available.
§Example
use celp_sdk::logger::SDKLogLevel;
let min_level = SDKLogLevel::min();Trait Implementations§
Source§impl Clone for SDKLogLevel
impl Clone for SDKLogLevel
Source§fn clone(&self) -> SDKLogLevel
fn clone(&self) -> SDKLogLevel
Returns a copy 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 SDKLogLevel
impl Debug for SDKLogLevel
Source§impl Default for SDKLogLevel
impl Default for SDKLogLevel
Source§fn default() -> SDKLogLevel
fn default() -> SDKLogLevel
Returns the “default value” for a type. Read more
Source§impl Display for SDKLogLevel
impl Display for SDKLogLevel
Source§impl From<Level> for SDKLogLevel
Same as above, but the other way around.
impl From<Level> for SDKLogLevel
Same as above, but the other way around.
Source§impl From<SDKLogLevel> for Level
Implement ‘From’ and ‘Into’ functionality to convert the Log levels we like to the levels that the crate uses.
This means we can do something like: ‘let log_level: Level = SDKLogLevel::Info.into();’
impl From<SDKLogLevel> for Level
Implement ‘From’ and ‘Into’ functionality to convert the Log levels we like to the levels that the crate uses. This means we can do something like: ‘let log_level: Level = SDKLogLevel::Info.into();’
Source§fn from(sdk_ll: SDKLogLevel) -> Self
fn from(sdk_ll: SDKLogLevel) -> Self
Converts an SDKLogLevel value to a Level value
§Example
use log::Level;
use celp_sdk::logger::SDKLogLevel;
let converted_log_level: Level = SDKLogLevel::default().into();Source§impl FromStr for SDKLogLevel
impl FromStr for SDKLogLevel
Source§impl TryFrom<&str> for SDKLogLevel
impl TryFrom<&str> for SDKLogLevel
impl Copy for SDKLogLevel
Auto Trait Implementations§
impl Freeze for SDKLogLevel
impl RefUnwindSafe for SDKLogLevel
impl Send for SDKLogLevel
impl Sync for SDKLogLevel
impl Unpin for SDKLogLevel
impl UnwindSafe for SDKLogLevel
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