#include <ModuleLogger.h>
Logger
implementation providing per module configuration. Forwards logs to another Logger
.
◆ ModuleLogger()
alexaClientSDK::avsCommon::utils::logger::ModuleLogger::ModuleLogger |
( |
const std::string & |
configKey | ) |
|
Constructor.
- Parameters
-
configKey | The name of the root configuration key to inspect for a "logLevel" string value. That string is used to specify the lowest log severity level that this ModuleLogger should emit. |
◆ emit()
void alexaClientSDK::avsCommon::utils::logger::ModuleLogger::emit |
( |
Level |
level, |
|
|
std::chrono::system_clock::time_point |
time, |
|
|
const char * |
threadMoniker, |
|
|
const char * |
text |
|
) |
| |
|
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().
- Parameters
-
[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.
◆ setLevel()
void alexaClientSDK::avsCommon::utils::logger::ModuleLogger::setLevel |
( |
Level |
level | ) |
|
|
overridevirtual |
◆ m_sink
std::shared_ptr<Logger> alexaClientSDK::avsCommon::utils::logger::ModuleLogger::m_sink |
|
protected |
The Logger
to forward logs to.
The documentation for this class was generated from the following file:
- /workplace/avs-device-sdk/AVSCommon/Utils/include/AVSCommon/Utils/Logger/ModuleLogger.h
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0