![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Public Member Functions | |
TestLogger () | |
void | emit (Level level, std::chrono::system_clock::time_point time, const char *threadMoniker, const char *text) override |
![]() | |
Logger (Level level) | |
virtual | ~Logger ()=default |
Destructor. More... | |
virtual void | setLevel (Level level) |
bool | shouldLog (Level level) const |
void | log (Level level, const LogEntry &entry) |
void | logAtExit (Level level, const LogEntry &entry) |
void | addLogLevelObserver (LogLevelObserverInterface *observer) |
void | removeLogLevelObserver (LogLevelObserverInterface *observer) |
Additional Inherited Members | |
![]() | |
void | init (const configuration::ConfigurationNode configuration) |
![]() | |
std::atomic< Level > | m_level |
The lowest severity level of logs to be output by this Logger. More... | |
The log sink that will receive logs from the ModuleLogger
. Just forwards logs to the current MockLogger (allowing he MockLogger to be destroyed ay the end of tests, and re-created by the next test).
alexaClientSDK::avsCommon::utils::logger::test::TestLogger::TestLogger | ( | ) |
Constructor
|
overridevirtual |
Emit a log entry. Default implementation is no-op. NOTE: This method must be thread-safe. NOTE: Delays in returning from this method may hold up calls to Logger::log().
[in] | level | The severity Level of this log line. |
[in] | time | The time that the event to log occurred. |
[in] | threadMoniker | Moniker of the thread that generated the event. |
[in] | text | The text of the entry to log. |
Reimplemented from alexaClientSDK::avsCommon::utils::logger::Logger.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0