-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Home
Welcome to the AWS C++ SDK wiki!
See the detailed step-by-step guide to get started.
The type of logger and the verbosity are specified during the SDK initialization in the SDKOptions
argument.
Specifying any verbosity level other than LogLevel::Off
will turn on the default logger.
The default logger will write to the filesystem; the file is named using the following convention aws_sdk_YYYY-MM-DD-HH.log
. The logger creates a new file on the hour.
There are six levels of verbosity:
- Off (the default)
- Fatal
- Error
- Warn
- Info
- Debug
- Trace
For example, to turn on Debug logs:
Aws::SDKOptions options;
options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Debug;
Aws::InitAPI(options);
// ...
Aws::ShutdownAPI(options);
The SDK also ships with a console logger that will print messages to the standard output. To use the console logger instead of the default filesystem logger:
#include <aws/core/utils/logging/ConsoleLogSystem.h>
using namespace Aws::Utils::Logging;
Aws::SDKOptions options;
options.loggingOptions.logLevel = LogLevel::Debug;
options.loggingOptions.logger_create_fn = [] { return std::make_shared<ConsoleLogSystem>(LogLevel::Trace); };
Aws::InitAPI(options);
// ...
Aws::ShutdownAPI(options);
Currently we support the following compilers:
- GCC 4.9.x and later
- Clang 3.3 and later
- MSVC 12.0 and later i.e. Visual Studio 2013 and later
Coming soon
Coming soon
Coming soon
Coming soon
Coming soon