5 #include <websocketpp/common/asio.hpp>
6 #include <websocketpp/logger/levels.hpp>
16 return "[" + addr.to_string() +
"]";
18 return addr.to_string();
34 channel_type_hint::value hint = channel_type_hint::access)
57 void write(websocketpp::log::level channel, std::string
const& msg) {
58 write(channel, msg.c_str());
61 void write(websocketpp::log::level channel,
char const* msg) {
69 if (channel == websocketpp::log::elevel::devel) {
71 }
else if (channel == websocketpp::log::elevel::library) {
73 }
else if (channel == websocketpp::log::elevel::info) {
75 }
else if (channel == websocketpp::log::elevel::warn) {
77 }
else if (channel == websocketpp::log::elevel::rerror) {
79 }
else if (channel == websocketpp::log::elevel::fatal) {
85 constexpr
bool static_test(websocketpp::log::level channel)
const {