AWS SDK for C++  1.9.19
AWS SDK for C++
Public Member Functions | Public Attributes | List of all members
Aws::LoggingOptions Struct Reference

#include <Aws.h>

Public Member Functions

 LoggingOptions ()
 

Public Attributes

Aws::Utils::Logging::LogLevel logLevel
 
const char * defaultLogPrefix
 
std::function< std::shared_ptr< Aws::Utils::Logging::LogSystemInterface >)> logger_create_fn
 
std::function< std::shared_ptr< Aws::Utils::Logging::CRTLogSystemInterface >)> crt_logger_create_fn
 

Detailed Description

SDK wide options for logging

Definition at line 25 of file Aws.h.

Constructor & Destructor Documentation

◆ LoggingOptions()

Aws::LoggingOptions::LoggingOptions ( )
inline

Definition at line 27 of file Aws.h.

Member Data Documentation

◆ crt_logger_create_fn

std::function<std::shared_ptr<Aws::Utils::Logging::CRTLogSystemInterface>)> Aws::LoggingOptions::crt_logger_create_fn

Defaults to empty, if logLevel has been set and this field is empty, then the default CRT log system will be used. The default CRT log system will redirect all logs from common runtime libraries (CRT) to C++ SDK with the same log level and formatting.

Definition at line 50 of file Aws.h.

◆ defaultLogPrefix

const char* Aws::LoggingOptions::defaultLogPrefix

Defaults to aws_sdk_. This will only be used if the default logger is used.

Definition at line 38 of file Aws.h.

◆ logger_create_fn

std::function<std::shared_ptr<Aws::Utils::Logging::LogSystemInterface>)> Aws::LoggingOptions::logger_create_fn

Defaults to empty, if logLevel has been set and this field is empty, then the default log system will be used. otherwise, we will call this closure to create a logger

Definition at line 44 of file Aws.h.

◆ logLevel

Aws::Utils::Logging::LogLevel Aws::LoggingOptions::logLevel

Defaults to Off, if this is set to something else, then logging will be turned on and logLevel will be passed to the logger

Definition at line 33 of file Aws.h.


The documentation for this struct was generated from the following file: