String to LogLevel
LogLevel
static LogLevel fromStringToEnum(String? type) { return LogLevel.values.firstWhere((e) => e.toString() == type); }