28 #ifndef WEBSOCKETPP_LOGGER_LEVELS_HPP
29 #define WEBSOCKETPP_LOGGER_LEVELS_HPP
31 #include <websocketpp/common/stdint.hpp>
33 namespace websocketpp {
37 typedef uint32_t level;
46 struct channel_type_hint {
48 typedef uint32_t value;
51 static value
const none = 0;
53 static value
const access = 1;
55 static value
const error = 2;
61 static level
const none = 0x0;
63 static level
const devel = 0x1;
66 static level
const library = 0x2;
69 static level
const info = 0x4;
72 static level
const warn = 0x8;
75 static level
const rerror = 0x10;
78 static level
const fatal = 0x20;
80 static level
const all = 0xffffffff;
91 static char const * channel_name(level channel) {
114 static level
const none = 0x0;
121 static level
const connect = 0x1;
123 static level
const disconnect = 0x2;
125 static level
const control = 0x4;
127 static level
const frame_header = 0x8;
129 static level
const frame_payload = 0x10;
131 static level
const message_header = 0x20;
133 static level
const message_payload = 0x40;
135 static level
const endpoint = 0x80;
137 static level
const debug_handshake = 0x100;
139 static level
const debug_close = 0x200;
141 static level
const devel = 0x400;
143 static level
const app = 0x800;
145 static level
const http = 0x1000;
147 static level
const fail = 0x2000;
150 static level
const access_core = 0x00003003;
152 static level
const all = 0xffffffff;
164 static char const * channel_name(level channel) {
173 return "frame_header";
175 return "frame_payload";
177 return "message_header";
178 case message_payload:
179 return "message_payload";
182 case debug_handshake:
183 return "debug_handshake";
185 return "debug_close";
189 return "application";