void AWSLogSystem::LogMessage()

in aws_common/src/sdk_utils/logging/aws_log_system.cpp [78:105]


void AWSLogSystem::LogMessage(Aws::Utils::Logging::LogLevel log_level, const char * tag,
                              const std::string & message)
{
  const char * normalized_tag = (tag == nullptr) ? "" : tag;
  switch (log_level) {
    case Aws::Utils::Logging::LogLevel::Info:
      LogInfo(normalized_tag, message);
      break;
    case Aws::Utils::Logging::LogLevel::Debug:
      LogDebug(normalized_tag, message);
      break;
    case Aws::Utils::Logging::LogLevel::Warn:
      LogWarn(normalized_tag, message);
      break;
    case Aws::Utils::Logging::LogLevel::Error:
      LogError(normalized_tag, message);
      break;
    case Aws::Utils::Logging::LogLevel::Fatal:
      LogFatal(normalized_tag, message);
      break;
    case Aws::Utils::Logging::LogLevel::Trace:
      LogTrace(normalized_tag, message);
      break;
    default:
      LogError(normalized_tag, message);
      break;
  }
}