AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Namespaces | |
test | |
Classes | |
class | ConsoleLogger |
class | LogEntry |
LogEntry is used to compile the log entry text to log via Logger. More... | |
class | LogEntryBuffer |
class | LogEntryStream |
class | Logger |
class | LoggerSinkManager |
class | LogLevelObserverInterface |
class | LogStringFormatter |
class | ModuleLogger |
class | SinkObserverInterface |
class | TestTrace |
class | ThreadMoniker |
Enumerations | |
enum | Level { Level::DEBUG9, Level::DEBUG8, Level::DEBUG7, Level::DEBUG6, Level::DEBUG5, Level::DEBUG4, Level::DEBUG3, Level::DEBUG2, Level::DEBUG1, Level::DEBUG0, Level::INFO, Level::WARN, Level::ERROR, Level::CRITICAL, Level::NONE, Level::UNKNOWN } |
Functions | |
std::shared_ptr< Logger > | getConsoleLogger () |
std::string | convertLevelToName (Level level) |
char | convertLevelToChar (Level level) |
Level | convertNameToLevel (const std::string &name) |
std::ostream & | operator<< (std::ostream &stream, Level level) |
std::shared_ptr< Logger > | ACSDK_GET_LOGGER_FUNCTION () |
void | acsdkDebug9 (const LogEntry &entry) |
void | acsdkDebug8 (const LogEntry &entry) |
void | acsdkDebug7 (const LogEntry &entry) |
void | acsdkDebug6 (const LogEntry &entry) |
void | acsdkDebug5 (const LogEntry &entry) |
void | acsdkDebug4 (const LogEntry &entry) |
void | acsdkDebug3 (const LogEntry &entry) |
void | acsdkDebug2 (const LogEntry &entry) |
void | acsdkDebug1 (const LogEntry &entry) |
void | acsdkDebug0 (const LogEntry &entry) |
void | acsdkDebug (const LogEntry &entry) |
void | acsdkInfo (const LogEntry &entry) |
void | acsdkWarn (const LogEntry &entry) |
void | acsdkError (const LogEntry &entry) |
void | acsdkCritical (const LogEntry &entry) |
void | logEntry (Level level, const LogEntry &entry) |
void | dumpBytesToStream (std::ostream &stream, const char *prefix, size_t width, const unsigned char *data, size_t size) |
std::shared_ptr< Logger > | getLoggerTestLogger () |
|
strong |
Enum used to specify the severity assigned to a log message.
|
inline |
Inline method to get the logger for the module specified by ACSDK_LOG_MODULE
.
void alexaClientSDK::avsCommon::utils::logger::acsdkCritical | ( | const LogEntry & | entry | ) |
Log a Level::CRITICAL severity entry.
entry | A log entry. |
void alexaClientSDK::avsCommon::utils::logger::acsdkDebug | ( | const LogEntry & | entry | ) |
Log a LEVEL::DEBUG0 severity entry.
entry | A log entry. |
void alexaClientSDK::avsCommon::utils::logger::acsdkDebug0 | ( | const LogEntry & | entry | ) |
Log a LEVEL::DEBUG0 severity entry.
entry | A log entry. |
void alexaClientSDK::avsCommon::utils::logger::acsdkDebug1 | ( | const LogEntry & | entry | ) |
Log a LEVEL::DEBUG1 severity entry.
entry | A log entry. |
void alexaClientSDK::avsCommon::utils::logger::acsdkDebug2 | ( | const LogEntry & | entry | ) |
Log a LEVEL::DEBUG2 severity entry.
entry | A log entry. |
void alexaClientSDK::avsCommon::utils::logger::acsdkDebug3 | ( | const LogEntry & | entry | ) |
Log a LEVEL::DEBUG3 severity entry.
entry | A log entry. |
void alexaClientSDK::avsCommon::utils::logger::acsdkDebug4 | ( | const LogEntry & | entry | ) |
Log a LEVEL::DEBUG4 severity entry.
entry | A log entry. |
void alexaClientSDK::avsCommon::utils::logger::acsdkDebug5 | ( | const LogEntry & | entry | ) |
Log a LEVEL::DEBUG5 severity entry.
entry | A log entry. |
void alexaClientSDK::avsCommon::utils::logger::acsdkDebug6 | ( | const LogEntry & | entry | ) |
Log a LEVEL::DEBUG6 severity entry.
entry | A log entry. |
void alexaClientSDK::avsCommon::utils::logger::acsdkDebug7 | ( | const LogEntry & | entry | ) |
Log a LEVEL::DEBUG7 severity entry.
entry | A log entry. |
void alexaClientSDK::avsCommon::utils::logger::acsdkDebug8 | ( | const LogEntry & | entry | ) |
Log a LEVEL::DEBUG8 severity entry.
entry | A log entry. |
void alexaClientSDK::avsCommon::utils::logger::acsdkDebug9 | ( | const LogEntry & | entry | ) |
Log a LEVEL::DEBUG9 severity entry.
entry | A log entry. |
void alexaClientSDK::avsCommon::utils::logger::acsdkError | ( | const LogEntry & | entry | ) |
Log a Level::ERROR severity entry.
entry | A log entry. |
void alexaClientSDK::avsCommon::utils::logger::acsdkInfo | ( | const LogEntry & | entry | ) |
Log a Level::INFO severity entry.
entry | A log entry. |
void alexaClientSDK::avsCommon::utils::logger::acsdkWarn | ( | const LogEntry & | entry | ) |
Log a Level::WARN severity entry.
entry | A log entry. |
char alexaClientSDK::avsCommon::utils::logger::convertLevelToChar | ( | Level | level | ) |
Get a character corresponding to a Level value. The characters returned are unique per log level and are intended to be used to minimize the space taken up by the level specifier in log lines.
level | The Level for which to get the corresponding character. |
level
is not recognized, returns 'U'. std::string alexaClientSDK::avsCommon::utils::logger::convertLevelToName | ( | Level | level | ) |
Get the name of a Level value.
level | The Level to get the name of. |
Level alexaClientSDK::avsCommon::utils::logger::convertNameToLevel | ( | const std::string & | name | ) |
Get the Level corresponding to a Level name.
name | The name corresponding to the desired Level value. |
Level
corresponding to the specified name. If the name
is not recognized, returns Level::UNKNOWN
. void alexaClientSDK::avsCommon::utils::logger::dumpBytesToStream | ( | std::ostream & | stream, |
const char * | prefix, | ||
size_t | width, | ||
const unsigned char * | data, | ||
size_t | size | ||
) |
Stream out an array of bytes as a hex dump.
stream | The stream to render to. |
prefix | A prefix added to each row. |
width | The number of bytes to output per row. |
data | The bytes to render. |
size | The number of bytes to render. |
std::shared_ptr< Logger > alexaClientSDK::avsCommon::utils::logger::getConsoleLogger | ( | ) |
Return the singleton instance of ConsoleLogger
.
ConsoleLogger
.Get the Logger
that logs should be sent to.
Logger
that logs should be sent to. std::shared_ptr<Logger> alexaClientSDK::avsCommon::utils::logger::getLoggerTestLogger | ( | ) |
Logs an entry at a severity level using the logger instance defined by ACSDK_GET_LOGGER_FUNCTION (refer to Logger.h).
level | The severity level of the log. |
entry | A log entry. |
|
inline |
Write a log severity Level
value to an ostream
as a string.
stream | The stream to write the value to. |
level | The Level value to write to the ostream as a string. |
ostream
that was passed in and written to. AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0