WebSocket++
0.8.1
C++ websocket client/server library
|
Package of log levels for logging access events. More...
#include <levels.hpp>
Static Public Member Functions | |
static const char * | channel_name (level channel) |
Get the textual name of a channel given a channel id. More... | |
Static Public Attributes | |
static const level | none = 0x0 |
Special aggregate value representing "no levels". | |
static const level | connect = 0x1 |
Information about new connections. More... | |
static const level | disconnect = 0x2 |
One line for each closed connection. Includes closing codes and reasons. | |
static const level | control = 0x4 |
One line per control frame. | |
static const level | frame_header = 0x8 |
One line per frame, includes the full frame header. | |
static const level | frame_payload = 0x10 |
One line per frame, includes the full message payload (warning: chatty) | |
static const level | message_header = 0x20 |
Reserved. | |
static const level | message_payload = 0x40 |
Reserved. | |
static const level | endpoint = 0x80 |
Reserved. | |
static const level | debug_handshake = 0x100 |
Extra information about opening handshakes. | |
static const level | debug_close = 0x200 |
Extra information about closing handshakes. | |
static const level | devel = 0x400 |
Development messages (warning: very chatty) | |
static const level | app = 0x800 |
Special channel for application specific logs. Not used by the library. | |
static const level | http = 0x1000 |
Access related to HTTP requests. | |
static const level | fail = 0x2000 |
One line for each failed WebSocket connection with details. | |
static const level | access_core = 0x00003003 |
static const level | all = 0xffffffff |
Special aggregate value representing "all levels". | |
Package of log levels for logging access events.
Definition at line 112 of file levels.hpp.
|
inlinestatic |
Get the textual name of a channel given a channel id.
Get the textual name of a channel given a channel id. The id must be that of a single channel. Passing an aggregate channel package results in undefined behavior.
channel | The channelid to look up. |
Definition at line 164 of file levels.hpp.
|
static |
Aggregate package representing the commonly used core access channels Connect, Disconnect, Fail, and HTTP
Definition at line 150 of file levels.hpp.
|
static |
Information about new connections.
One line for each new connection that includes a host of information including: the remote address, websocket version, requested resource, http code, remote user agent
Definition at line 121 of file levels.hpp.