【问题标题】:AWS C++ SDK Logging on Windows - where are the logs?Windows 上的 AWS C++ SDK 日志记录 - 日志在哪里?
【发布时间】:2018-04-17 23:09:17
【问题描述】:

我正在尝试通过以下方式工作: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);

【问题讨论】:

    标签: amazon-web-services aws-sdk-cpp


    【解决方案1】:

    没关系..它确实记录到当前工作目录中的文件。

    【讨论】:

      猜你喜欢
      • 2019-01-22
      • 1970-01-01
      • 1970-01-01
      • 2011-06-18
      • 1970-01-01
      • 1970-01-01
      • 2011-09-16
      • 2018-08-13
      • 1970-01-01
      相关资源
      最近更新 更多