AWS SDK for C++  0.14.3
AWS SDK for C++
Macros
LogMacros.h File Reference
#include <aws/core/Core_EXPORTS.h>
#include <aws/core/utils/logging/LogLevel.h>
#include <aws/core/utils/logging/AWSLogging.h>
#include <aws/core/utils/logging/LogSystemInterface.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>

Go to the source code of this file.

Macros

#define AWS_LOG(level, tag, ...)
 
#define AWS_LOG_FATAL(tag, ...)
 
#define AWS_LOG_ERROR(tag, ...)
 
#define AWS_LOG_WARN(tag, ...)
 
#define AWS_LOG_INFO(tag, ...)
 
#define AWS_LOG_DEBUG(tag, ...)
 
#define AWS_LOG_TRACE(tag, ...)
 
#define AWS_LOGSTREAM(level, tag, streamExpression)
 
#define AWS_LOGSTREAM_FATAL(tag, streamExpression)
 
#define AWS_LOGSTREAM_ERROR(tag, streamExpression)
 
#define AWS_LOGSTREAM_WARN(tag, streamExpression)
 
#define AWS_LOGSTREAM_INFO(tag, streamExpression)
 
#define AWS_LOGSTREAM_DEBUG(tag, streamExpression)
 
#define AWS_LOGSTREAM_TRACE(tag, streamExpression)
 

Macro Definition Documentation

#define AWS_LOG (   level,
  tag,
  ... 
)
Value:
{ \
Aws::Utils::Logging::LogSystemInterface* logSystem = Aws::Utils::Logging::GetLogSystem(); \
if ( logSystem && logSystem->GetLogLevel() >= level ) \
{ \
logSystem->Log(level, tag, __VA_ARGS__); \
} \
}
AWS_CORE_API LogSystemInterface * GetLogSystem()

Definition at line 51 of file LogMacros.h.

#define AWS_LOG_DEBUG (   tag,
  ... 
)
Value:
{ \
Aws::Utils::Logging::LogSystemInterface* logSystem = Aws::Utils::Logging::GetLogSystem(); \
if ( logSystem && logSystem->GetLogLevel() >= Aws::Utils::Logging::LogLevel::Debug ) \
{ \
logSystem->Log(Aws::Utils::Logging::LogLevel::Debug, tag, __VA_ARGS__); \
} \
}
AWS_CORE_API LogSystemInterface * GetLogSystem()

Definition at line 96 of file LogMacros.h.

#define AWS_LOG_ERROR (   tag,
  ... 
)
Value:
{ \
Aws::Utils::Logging::LogSystemInterface* logSystem = Aws::Utils::Logging::GetLogSystem(); \
if ( logSystem && logSystem->GetLogLevel() >= Aws::Utils::Logging::LogLevel::Error ) \
{ \
logSystem->Log(Aws::Utils::Logging::LogLevel::Error, tag, __VA_ARGS__); \
} \
}
AWS_CORE_API LogSystemInterface * GetLogSystem()

Definition at line 69 of file LogMacros.h.

#define AWS_LOG_FATAL (   tag,
  ... 
)
Value:
{ \
Aws::Utils::Logging::LogSystemInterface* logSystem = Aws::Utils::Logging::GetLogSystem(); \
if ( logSystem && logSystem->GetLogLevel() >= Aws::Utils::Logging::LogLevel::Fatal ) \
{ \
logSystem->Log(Aws::Utils::Logging::LogLevel::Fatal, tag, __VA_ARGS__); \
} \
}
AWS_CORE_API LogSystemInterface * GetLogSystem()

Definition at line 60 of file LogMacros.h.

#define AWS_LOG_INFO (   tag,
  ... 
)
Value:
{ \
Aws::Utils::Logging::LogSystemInterface* logSystem = Aws::Utils::Logging::GetLogSystem(); \
if ( logSystem && logSystem->GetLogLevel() >= Aws::Utils::Logging::LogLevel::Info ) \
{ \
logSystem->Log(Aws::Utils::Logging::LogLevel::Info, tag, __VA_ARGS__); \
} \
}
AWS_CORE_API LogSystemInterface * GetLogSystem()

Definition at line 87 of file LogMacros.h.

#define AWS_LOG_TRACE (   tag,
  ... 
)
Value:
{ \
Aws::Utils::Logging::LogSystemInterface* logSystem = Aws::Utils::Logging::GetLogSystem(); \
if ( logSystem && logSystem->GetLogLevel() >= Aws::Utils::Logging::LogLevel::Trace ) \
{ \
logSystem->Log(Aws::Utils::Logging::LogLevel::Trace, tag, __VA_ARGS__); \
} \
}
AWS_CORE_API LogSystemInterface * GetLogSystem()

Definition at line 105 of file LogMacros.h.

#define AWS_LOG_WARN (   tag,
  ... 
)
Value:
{ \
Aws::Utils::Logging::LogSystemInterface* logSystem = Aws::Utils::Logging::GetLogSystem(); \
if ( logSystem && logSystem->GetLogLevel() >= Aws::Utils::Logging::LogLevel::Warn ) \
{ \
logSystem->Log(Aws::Utils::Logging::LogLevel::Warn, tag, __VA_ARGS__); \
} \
}
AWS_CORE_API LogSystemInterface * GetLogSystem()

Definition at line 78 of file LogMacros.h.

#define AWS_LOGSTREAM (   level,
  tag,
  streamExpression 
)
Value:
{ \
Aws::Utils::Logging::LogSystemInterface* logSystem = Aws::Utils::Logging::GetLogSystem(); \
if ( logSystem && logSystem->GetLogLevel() >= level ) \
{ \
Aws::OStringStream logStream; \
logStream << streamExpression; \
logSystem->LogStream( logLevel, tag, logStream ); \
} \
}
std::basic_ostringstream< char, std::char_traits< char >, Aws::Allocator< char > > OStringStream
AWS_CORE_API LogSystemInterface * GetLogSystem()

Definition at line 114 of file LogMacros.h.

#define AWS_LOGSTREAM_DEBUG (   tag,
  streamExpression 
)
Value:
{ \
Aws::Utils::Logging::LogSystemInterface* logSystem = Aws::Utils::Logging::GetLogSystem(); \
if ( logSystem && logSystem->GetLogLevel() >= Aws::Utils::Logging::LogLevel::Debug ) \
{ \
Aws::OStringStream logStream; \
logStream << streamExpression; \
logSystem->LogStream( Aws::Utils::Logging::LogLevel::Debug, tag, logStream ); \
} \
}
std::basic_ostringstream< char, std::char_traits< char >, Aws::Allocator< char > > OStringStream
AWS_CORE_API LogSystemInterface * GetLogSystem()

Definition at line 169 of file LogMacros.h.

#define AWS_LOGSTREAM_ERROR (   tag,
  streamExpression 
)
Value:
{ \
Aws::Utils::Logging::LogSystemInterface* logSystem = Aws::Utils::Logging::GetLogSystem(); \
if ( logSystem && logSystem->GetLogLevel() >= Aws::Utils::Logging::LogLevel::Error ) \
{ \
Aws::OStringStream logStream; \
logStream << streamExpression; \
logSystem->LogStream( Aws::Utils::Logging::LogLevel::Error, tag, logStream ); \
} \
}
std::basic_ostringstream< char, std::char_traits< char >, Aws::Allocator< char > > OStringStream
AWS_CORE_API LogSystemInterface * GetLogSystem()

Definition at line 136 of file LogMacros.h.

#define AWS_LOGSTREAM_FATAL (   tag,
  streamExpression 
)
Value:
{ \
Aws::Utils::Logging::LogSystemInterface* logSystem = Aws::Utils::Logging::GetLogSystem(); \
if ( logSystem && logSystem->GetLogLevel() >= Aws::Utils::Logging::LogLevel::Fatal ) \
{ \
Aws::OStringStream logStream; \
logStream << streamExpression; \
logSystem->LogStream( Aws::Utils::Logging::LogLevel::Fatal, tag, logStream ); \
} \
}
std::basic_ostringstream< char, std::char_traits< char >, Aws::Allocator< char > > OStringStream
AWS_CORE_API LogSystemInterface * GetLogSystem()

Definition at line 125 of file LogMacros.h.

#define AWS_LOGSTREAM_INFO (   tag,
  streamExpression 
)
Value:
{ \
Aws::Utils::Logging::LogSystemInterface* logSystem = Aws::Utils::Logging::GetLogSystem(); \
if ( logSystem && logSystem->GetLogLevel() >= Aws::Utils::Logging::LogLevel::Info ) \
{ \
Aws::OStringStream logStream; \
logStream << streamExpression; \
logSystem->LogStream( Aws::Utils::Logging::LogLevel::Info, tag, logStream ); \
} \
}
std::basic_ostringstream< char, std::char_traits< char >, Aws::Allocator< char > > OStringStream
AWS_CORE_API LogSystemInterface * GetLogSystem()

Definition at line 158 of file LogMacros.h.

#define AWS_LOGSTREAM_TRACE (   tag,
  streamExpression 
)
Value:
{ \
Aws::Utils::Logging::LogSystemInterface* logSystem = Aws::Utils::Logging::GetLogSystem(); \
if ( logSystem && logSystem->GetLogLevel() >= Aws::Utils::Logging::LogLevel::Trace ) \
{ \
Aws::OStringStream logStream; \
logStream << streamExpression; \
logSystem->LogStream( Aws::Utils::Logging::LogLevel::Trace, tag, logStream ); \
} \
}
std::basic_ostringstream< char, std::char_traits< char >, Aws::Allocator< char > > OStringStream
AWS_CORE_API LogSystemInterface * GetLogSystem()

Definition at line 180 of file LogMacros.h.

#define AWS_LOGSTREAM_WARN (   tag,
  streamExpression 
)
Value:
{ \
Aws::Utils::Logging::LogSystemInterface* logSystem = Aws::Utils::Logging::GetLogSystem(); \
if ( logSystem && logSystem->GetLogLevel() >= Aws::Utils::Logging::LogLevel::Warn ) \
{ \
Aws::OStringStream logStream; \
logStream << streamExpression; \
logSystem->LogStream( Aws::Utils::Logging::LogLevel::Warn, tag, logStream ); \
} \
}
std::basic_ostringstream< char, std::char_traits< char >, Aws::Allocator< char > > OStringStream
AWS_CORE_API LogSystemInterface * GetLogSystem()

Definition at line 147 of file LogMacros.h.