MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / GetLogLevel

Method GetLogLevel

extensions/aws/utils/AWSSdkLogger.cpp:31–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29namespace utils {
30
31Aws::Utils::Logging::LogLevel AWSSdkLogger::GetLogLevel() const {
32 if (logger_->should_log(minifi::core::logging::LOG_LEVEL::trace))
33 return Aws::Utils::Logging::LogLevel::Trace;
34 if (logger_->should_log(minifi::core::logging::LOG_LEVEL::debug))
35 return Aws::Utils::Logging::LogLevel::Debug;
36 if (logger_->should_log(minifi::core::logging::LOG_LEVEL::info))
37 return Aws::Utils::Logging::LogLevel::Info;
38 if (logger_->should_log(minifi::core::logging::LOG_LEVEL::warn))
39 return Aws::Utils::Logging::LogLevel::Warn;
40 if (logger_->should_log(minifi::core::logging::LOG_LEVEL::err))
41 return Aws::Utils::Logging::LogLevel::Error;
42 if (logger_->should_log(minifi::core::logging::LOG_LEVEL::critical))
43 return Aws::Utils::Logging::LogLevel::Fatal;
44 return Aws::Utils::Logging::LogLevel::Off;
45}
46
47void AWSSdkLogger::Log(Aws::Utils::Logging::LogLevel log_level, const char* tag, const char* format_str, ...) {
48 switch (log_level) {

Callers

nothing calls this directly

Calls 1

should_logMethod · 0.80

Tested by

no test coverage detected