WebSocket++  0.8.2
C++ websocket client/server library
Static Public Member Functions | Static Public Attributes | List of all members
websocketpp::log::alevel Struct Reference

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".
 

Detailed Description

Package of log levels for logging access events.

Definition at line 112 of file levels.hpp.

Member Function Documentation

◆ channel_name()

static const char* websocketpp::log::alevel::channel_name ( level  channel)
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.

Parameters
channelThe channelid to look up.
Returns
The name of the specified channel.

Definition at line 164 of file levels.hpp.

Member Data Documentation

◆ access_core

const level websocketpp::log::alevel::access_core = 0x00003003
static

Aggregate package representing the commonly used core access channels Connect, Disconnect, Fail, and HTTP

Definition at line 150 of file levels.hpp.

◆ connect

const level websocketpp::log::alevel::connect = 0x1
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.


The documentation for this struct was generated from the following file: