16 #ifndef ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_LOGGER_LOGENTRY_H_ 17 #define ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_LOGGER_LOGENTRY_H_ 43 LogEntry(
const char* source,
const char* event);
70 template <
typename ValueType>
81 LogEntry&
d(
const char* key,
const char* value);
91 LogEntry&
d(
const char* key,
char* value);
111 LogEntry&
d(
const char* key,
bool value);
121 template <
typename ValueType>
122 LogEntry&
d(
const char* key,
const ValueType& value);
133 template <
typename ValueType>
180 template <
typename PtrType>
181 LogEntry&
p(
const char* key,
const std::shared_ptr<PtrType>& ptr);
193 LogEntry&
p(
const char* key,
const void* ptr);
201 const char*
c_str()
const;
205 void prefixKeyValuePair();
208 void prefixMessage();
218 void appendEscapedString(
const char* in);
221 static const char KEY_VALUE_SEPARATOR =
'=';
230 template <
typename ValueType>
232 return d(key.c_str(), value);
235 template <
typename ValueType>
237 prefixKeyValuePair();
238 m_stream << key << KEY_VALUE_SEPARATOR << value;
243 return d(key, const_cast<const char*>(value));
246 template <
typename PtrType>
248 return d(key, ptr.get());
252 #ifdef ACSDK_EMIT_SENSITIVE_LOGS 254 template <
typename ValueType>
256 return d(key, value);
259 template <
typename ValueType>
270 #endif // ALEXA_CLIENT_SDK_AVSCOMMON_UTILS_INCLUDE_AVSCOMMON_UTILS_LOGGER_LOGENTRY_H_
LogEntry & obfuscatePrivateData(const char *key, const std::string &value)
::std::string string
Definition: gtest-port.h:1097
LogEntry & p(const char *key, const std::shared_ptr< PtrType > &ptr)
Definition: LogEntry.h:247
const char * c_str() const
LogEntry & sensitive(const char *key, const ValueType &value)
Definition: LogEntry.h:260
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
LogEntry(const char *source, const char *event)
LogEntry & d(const std::string &key, const ValueType &value)
Definition: LogEntry.h:231
LogEntry & m(const char *message)
Definition: LogEntryStream.h:31
tuple message
Definition: gtest_output_test.py:331
static const std::string key
The database key to be used by the protocol given the METADATA object.
Definition: SharedAVSSettingProtocolTest.cpp:58
LogEntry is used to compile the log entry text to log via Logger.
Definition: LogEntry.h:33