adamdebreceni commented on code in PR #1367:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1367#discussion_r940172874
##########
libminifi/src/core/logging/LoggerConfiguration.cpp:
##########
@@ -60,26 +62,28 @@ namespace org::apache::nifi::minifi::core::logging {
const char* LoggerConfiguration::spdlog_default_pattern = "[%Y-%m-%d
%H:%M:%S.%e] [%n] [%l] %v";
-namespace {
-std::optional<spdlog::level::level_enum> parse_log_level(const std::string&
level_name) {
- if (utils::StringUtils::equalsIgnoreCase(level_name, "trace")) {
- return spdlog::level::trace;
- } else if (utils::StringUtils::equalsIgnoreCase(level_name, "debug")) {
- return spdlog::level::debug;
- } else if (utils::StringUtils::equalsIgnoreCase(level_name, "info")) {
- return spdlog::level::info;
- } else if (utils::StringUtils::equalsIgnoreCase(level_name, "warn")) {
- return spdlog::level::warn;
- } else if (utils::StringUtils::equalsIgnoreCase(level_name, "error")) {
- return spdlog::level::err;
- } else if (utils::StringUtils::equalsIgnoreCase(level_name, "critical")) {
- return spdlog::level::critical;
- } else if (utils::StringUtils::equalsIgnoreCase(level_name, "off")) {
- return spdlog::level::off;
+namespace internal {
+
+bool LoggerNamespace::findSink(std::function<bool(const
std::shared_ptr<spdlog::sinks::sink>&)> filter) const {
Review Comment:
changed it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]