16 #ifndef ALEXA_CLIENT_SDK_COMMUNICATION_INCLUDE_COMMUNICATION_WEBSOCKETSDKLOGGER_H_ 17 #define ALEXA_CLIENT_SDK_COMMUNICATION_INCLUDE_COMMUNICATION_WEBSOCKETSDKLOGGER_H_ 19 #include <websocketpp/common/cpp11.hpp> 20 #include <websocketpp/logger/levels.hpp> 24 namespace sampleApplications {
25 namespace ipcServerSampleApp {
26 namespace communication {
30 using level = websocketpp::log::level;
36 WebSocketSDKLogger(websocketpp::log::channel_type_hint::value hint = websocketpp::log::channel_type_hint::access) :
37 m_channelTypeHint{hint} {
108 void logErrorMessage(
level channel,
char const* msg)
const;
115 void logAccessMessage(
level,
char const* msg)
const;
117 websocketpp::log::channel_type_hint::value m_channelTypeHint;
124 #endif // ALEXA_CLIENT_SDK_COMMUNICATION_INCLUDE_COMMUNICATION_WEBSOCKETSDKLOGGER_H_ WebSocketSDKLogger(websocketpp::log::channel_type_hint::value hint=websocketpp::log::channel_type_hint::access)
Construct the logger.
Definition: WebSocketSDKLogger.h:36
::std::string string
Definition: gtest-port.h:1097
void set_channels(level channels)
Dynamically enable the given list of channels.
Definition: WebSocketSDKLogger.h:54
void clear_channels(level channels)
Dynamically disable the given list of channels.
Definition: WebSocketSDKLogger.h:63
Wrapper around the Alexa Client SDK logger for use by websocketspp.
Definition: WebSocketSDKLogger.h:28
WebSocketSDKLogger(level channels, websocketpp::log::channel_type_hint::value hint)
Construct the logger.
Definition: WebSocketSDKLogger.h:45
void write(level channel, std::string const &msg)
Write a string message to the given channel.
Whether or not curl logs should be emitted.
Definition: AVSConnectionManager.h:36
bool static_test(level channel) const
Tests whether a log level is statically enabled.
Definition: WebSocketSDKLogger.h:73
bool dynamic_test(level channel) const
Tests whether a log level is dynamically enabled.
Definition: WebSocketSDKLogger.h:84
websocketpp::log::level level
Definition: WebSocketSDKLogger.h:30