13 #include <fmt/format.h>
20 log4cplus::LogLevelManager& log_mgr = log4cplus::getLogLevelManager();
21 log4cplus::LogLevel ll = log_mgr.fromString(token);
22 if (ll == log4cplus::NOT_SET_LOG_LEVEL) {
23 throw std::invalid_argument(fmt::format(
"'{}' is not a valid log level", token));
30 log4cplus::LogLevelManager& log_mgr = log4cplus::getLogLevelManager();
31 os << log_mgr.toString(level.
value);
36 std::string_view str = trim.m_str;
41 os.write(str.data(), str.size());
Trim string from whitespace (' ', ' ')
static constexpr std::string_view WHITESPACE
Declaration of log4cplus helpers.
daqif::DaqStatus & operator<<(daqif::DaqStatus &status, daq::Status const &rhs)
Convert daq::Status -> daqif::DaqStatus by populating from rhs.
std::istream & operator>>(std::istream &is, LogLevel &level)
Parse log level from string.
log4cplus::LogLevel value
ly typed log4cplus::LogLevel (which is an alias to int)