Assure valid log level
validate_log_level(level)
level
log_levels object or string representation
log_levels
log_levels object