53 case LogLevel::kTrace:
55 case LogLevel::kDebug:
61 case LogLevel::kError:
63 case LogLevel::kCritical:
65 case LogLevel::kFatal:
80 if (level ==
"trace")
return LogLevel::kTrace;
81 if (level ==
"debug")
return LogLevel::kDebug;
82 if (level ==
"info")
return LogLevel::kInfo;
83 if (level ==
"warn")
return LogLevel::kWarn;
84 if (level ==
"error")
return LogLevel::kError;
85 if (level ==
"critical")
return LogLevel::kCritical;
86 if (level ==
"fatal")
return LogLevel::kFatal;
87 if (level ==
"off")
return LogLevel::kOff;
88 return InvalidArgument(
"Invalid log level: {}", s);
static std::string ToLower(std::string_view str)
Lower-case a UTF-8 string using Unicode simple (1:1) case mapping.
Definition expected.h:1199
Core Apache Iceberg C++ APIs.
Definition arrow_io_util.h:34
ICEBERG_EXPORT std::string_view ToString(Expression::Operation op)
Returns a string representation of an expression operation.
void unreachable() noexcept
Marks a branch the program can never take.
Definition unreachable.h:35
Result< LogLevel > LogLevelFromString(std::string_view s)
Parse a LogLevel from a string (case-insensitive).
Definition log_level.h:78
LogLevel
Logging severity level, ordered from most to least verbose.
Definition log_level.h:39
Define Result, Status, and error helpers.
Provide string utility helpers.
Portable stand-in for std::unreachable.