in aws_common/src/sdk_utils/logging/aws_log_system.cpp [45:66]
void AWSLogSystem::Log(Aws::Utils::Logging::LogLevel log_level, const char * tag,
const char * format, ...)
{
// Do not log for all log_levels greater than the configured log level.
//
// Aws::Utils::Logging::LogLevel values are here -
// https://sdk.amazonaws.com/cpp/api/0.14.3/aws-cpp-sdk-core_2include_2aws_2core_2utils_2logging_2_log_level_8h_source.html
if (log_level > configured_log_level_) {
return;
}
// Max log line size DEFAULT_LOG_MESSAGE_SIZE_BYTES(1024) bytes.
char buf[DEFAULT_LOG_MESSAGE_SIZE_BYTES];
va_list argptr;
va_start(argptr, format);
vsnprintf(buf, sizeof(buf), format, argptr);
va_end(argptr);
const std::string s(buf);
LogMessage(log_level, tag, s);
}