fromString static method
Converts the given String s
to the log level.
Returns null if no log level was found.
Implementation
static Level? fromString(String? s) {
for (var l in LEVELS) {
if (l.name.toLowerCase() == s!.toLowerCase()) {
return l;
}
}
return null;
}