我正在尝试从这里开始工作:https ://docs.aws.amazon.com/sdk-for-cpp/v1/developer-guide/logging.html ,但我在任何地方都没有看到任何日志输出?
AWS SDK 中的默认日志记录是否应该写入 Windows 上的文件?还是到事件查看器?或者可能是 DebugView?标准输出/标准错误?
测试代码:
AWSOptions.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Trace;
Aws::InitAPI(AWSOptions);
Aws::Utils::Logging::InitializeAWSLogging(
Aws::MakeShared<Aws::Utils::Logging::DefaultLogSystem>(
"AwsLogTest", Aws::Utils::Logging::LogLevel::Trace, "aws_sdk_"));
Aws::Utils::Logging::LogSystemInterface* LogSystem = Aws::Utils::Logging::GetLogSystem();
LogSystem->Log(Aws::Utils::Logging::LogLevel::Info, "TEST", "THIS IS A TEST");
Aws::Utils::Logging::ShutdownAWSLogging();
Aws::ShutdownAPI(AWSOptions);