Log: Make the validate log level a static function
This commit is contained in:
@@ -30,6 +30,11 @@ def main():
|
||||
log.logger.critical('[NORMAL] Critical test: %s', log.logger.name)
|
||||
log.exception('[NORMAL] Exception test: %s', log.logger.name)
|
||||
|
||||
if not Log.validate_log_level('WRONG'):
|
||||
print("Invalid level")
|
||||
if Log.validate_log_level('WARNING'):
|
||||
print("Valid level")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user