Skip to content

Documented Example of Enabling Logging Does Not Work #22

Closed
@cjhanks

Description

@cjhanks
// example.cpp
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/logging/DefaultLogSystem.h>
#include <aws/core/utils/logging/AWSLogging.h>

#include <iostream>

int main(int argc, char** argv)
{
  Aws::Utils::Logging::InitializeAWSLogging(Aws::MakeShared<Aws::Utils::Logging::DefaultLogSystem>("RunUnitTests", Aws::Utils::Logging::LogLevel::TRACE, "aws_sdk_"));
  Aws::Utils::Logging::ShutdownAWSLogging();
  return 0;
}
% g++ -std=c++11 example.cpp
example.cpp: In function ‘int main(int, char**)’:
example.cpp:10:116: error: ‘TRACE’ is not a member of ‘Aws::Utils::Logging::LogLevel’
   Aws::Utils::Logging::InitializeAWSLogging(Aws::MakeShared<Aws::Utils::Logging::DefaultLogSystem>("RunUnitTests", Aws::Utils::Logging::LogLevel::TRACE, "aws_sdk_"));

I have looked all through the header files for a reference to TRACE, I can't find references to it in anything but macro's.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions