AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Logging.h
Go to the documentation of this file.
1 /*
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License").
5  * You may not use this file except in compliance with the License.
6  * A copy of the License is located at
7  *
8  * http://aws.amazon.com/apache2.0/
9  *
10  * or in the "license" file accompanying this file. This file is distributed
11  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12  * express or implied. See the License for the specific language governing
13  * permissions and limitations under the License.
14  */
15 
16 #ifndef ACSDKPROPERTIES_PRIVATE_LOGGING_H_
17 #define ACSDKPROPERTIES_PRIVATE_LOGGING_H_
18 
20 
30 #define LX(event) ::alexaClientSDK::avsCommon::utils::logger::LogEntry(TAG, event)
31 
40 #define LX_CFG(event, configUri) LX(event).d(::alexaClientSDK::acsdkProperties::CONFIG_URI, configUri)
41 
51 #define LX_CFG_KEY(event, configUri, key) LX_CFG(event, configUri).d(::alexaClientSDK::acsdkProperties::KEY, key)
52 
64 #define ACSDK_UNUSED_VARIABLE(var) (void)var
65 
66 namespace alexaClientSDK {
67 namespace avsCommon {
68 namespace utils {
69 namespace logger {
70 
71 template <>
72 LogEntry& LogEntry::d(const char* key, const std::vector<unsigned char>& value);
73 
74 } // namespace logger
75 } // namespace utils
76 } // namespace avsCommon
77 } // namespace alexaClientSDK
78 
79 namespace alexaClientSDK {
80 namespace acsdkProperties {
81 
84 extern const std::string CONFIG_URI;
85 
88 extern const std::string KEY;
89 
90 } // namespace acsdkProperties
91 } // namespace alexaClientSDK
92 
93 #endif // ACSDKPROPERTIES_PRIVATE_LOGGING_H_
alexaClientSDK::acsdkAuthorization::lwa::CONFIG_URI
const std::string CONFIG_URI
The configuration URI.
Definition: LWAStorageConstants.cpp:26
Logger.h
alexaClientSDK::settings::test::key
static const std::string key
The database key to be used by the protocol given the METADATA object.
Definition: SharedAVSSettingProtocolTest.cpp:58
alexaClientSDK
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
alexaClientSDK::avsCommon::utils::logger::LogEntry::d
LogEntry & d(const std::string &key, const ValueType &value)
Definition: LogEntry.h:200

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