AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | List of all members
alexaClientSDK::avsCommon::utils::logger::test::TestLogger Class Reference
Inheritance diagram for alexaClientSDK::avsCommon::utils::logger::test::TestLogger:
Inheritance graph
Collaboration diagram for alexaClientSDK::avsCommon::utils::logger::test::TestLogger:
Collaboration graph

Public Member Functions

 TestLogger ()
void emit (Level level, std::chrono::system_clock::time_point time, const char *threadMoniker, const char *text) override
- Public Member Functions inherited from alexaClientSDK::avsCommon::utils::logger::Logger
 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

- Protected Member Functions inherited from alexaClientSDK::avsCommon::utils::logger::Logger
void init (const configuration::ConfigurationNode configuration)
- Protected Attributes inherited from alexaClientSDK::avsCommon::utils::logger::Logger
std::atomic< Levelm_level
 The lowest severity level of logs to be output by this Logger. More...

Detailed Description

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).

Constructor & Destructor Documentation

◆ TestLogger()

alexaClientSDK::avsCommon::utils::logger::test::TestLogger::TestLogger ( )


Member Function Documentation

◆ emit()

void alexaClientSDK::avsCommon::utils::logger::test::TestLogger::emit ( Level  level,
std::chrono::system_clock::time_point  time,
const char *  threadMoniker,
const char *  text 

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]levelThe severity Level of this log line.
[in]timeThe time that the event to log occurred.
[in]threadMonikerMoniker of the thread that generated the event.
[in]textThe text of the entry to log.

Reimplemented from alexaClientSDK::avsCommon::utils::logger::Logger.

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

AlexaClientSDK 3.0.0 - Copyright 2016-2022, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0