Logging #26

Open
leon wants to merge 33 commits from Logging into main
Showing only changes of commit 6e73c2a7b7 - Show all commits

View File

@ -140,15 +140,15 @@ pub static CONFIG: RwLock<Config> = RwLock::new(DEFAULTS);
#[derive(Copy, Clone, Debug, PartialEq, Eq)] #[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub enum LogVerbosity { pub enum LogVerbosity {
/// Critical Errors, may lead to crashes or deactivating certain features. /// Critical Errors, may lead to crashes or deactivating certain features.
Error, Error = 10,
/// Very minor and recovered errors, such as invalid configs. /// Very minor and recovered errors, such as invalid configs.
Warning, Warning = 20,
/// Very verbose and detailed. Basically gives a step-by-step instruction on what is currently done. /// Very verbose and detailed. Basically gives a step-by-step instruction on what is currently done.
Information, Information = 30,
/// Very technical and even more verbose. /// Very technical and even more verbose.
/// May contain secrets and private information. /// May contain secrets and private information.
/// **Do not use in production environments!** /// **Do not use in production environments!**
Debugging, Debugging = 40,
} }
impl PartialOrd for LogVerbosity { impl PartialOrd for LogVerbosity {