Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
websocketpp::log::alevel Struct Reference

Package of log levels for logging access events. More...

#include <levels.hpp>

Static Public Member Functions

static char const * channel_name (level channel)
 Get the textual name of a channel given a channel id.
 

Static Public Attributes

static level const none = 0x0
 Special aggregate value representing "no levels".
 
static level const connect = 0x1
 Information about new connections.
 
static level const disconnect = 0x2
 One line for each closed connection. Includes closing codes and reasons.
 
static level const control = 0x4
 One line per control frame.
 
static level const frame_header = 0x8
 One line per frame, includes the full frame header.
 
static level const frame_payload = 0x10
 One line per frame, includes the full message payload (warning: chatty)
 
static level const message_header = 0x20
 Reserved.
 
static level const message_payload = 0x40
 Reserved.
 
static level const endpoint = 0x80
 Reserved.
 
static level const debug_handshake = 0x100
 Extra information about opening handshakes.
 
static level const debug_close = 0x200
 Extra information about closing handshakes.
 
static level const devel = 0x400
 Development messages (warning: very chatty)
 
static level const app = 0x800
 Special channel for application specific logs. Not used by the library.
 
static level const http = 0x1000
 Access related to HTTP requests.
 
static level const fail = 0x2000
 One line for each failed WebSocket connection with details.
 
static level const access_core = 0x00003003
 
static level const all = 0xffffffff
 Special aggregate value representing "all levels".
 

Detailed Description

Definition at line 112 of file levels.hpp.

Member Function Documentation

◆ channel_name()

static char const * websocketpp::log::alevel::channel_name ( level channel)
inlinestatic

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.

164 {
165 switch(channel) {
166 case connect:
167 return "connect";
168 case disconnect:
169 return "disconnect";
170 case control:
171 return "control";
172 case frame_header:
173 return "frame_header";
174 case frame_payload:
175 return "frame_payload";
176 case message_header:
177 return "message_header";
178 case message_payload:
179 return "message_payload";
180 case endpoint:
181 return "endpoint";
182 case debug_handshake:
183 return "debug_handshake";
184 case debug_close:
185 return "debug_close";
186 case devel:
187 return "devel";
188 case app:
189 return "application";
190 case http:
191 return "http";
192 case fail:
193 return "fail";
194 default:
195 return "unknown";
196 }
197 }
static level const fail
One line for each failed WebSocket connection with details.
Definition levels.hpp:147
static level const debug_handshake
Extra information about opening handshakes.
Definition levels.hpp:137
static level const devel
Development messages (warning: very chatty)
Definition levels.hpp:141
static level const debug_close
Extra information about closing handshakes.
Definition levels.hpp:139
static level const frame_payload
One line per frame, includes the full message payload (warning: chatty)
Definition levels.hpp:129
static level const connect
Information about new connections.
Definition levels.hpp:121
static level const app
Special channel for application specific logs. Not used by the library.
Definition levels.hpp:143
static level const frame_header
One line per frame, includes the full frame header.
Definition levels.hpp:127
static level const message_payload
Reserved.
Definition levels.hpp:133
static level const endpoint
Reserved.
Definition levels.hpp:135
static level const message_header
Reserved.
Definition levels.hpp:131
static level const control
One line per control frame.
Definition levels.hpp:125
static level const disconnect
One line for each closed connection. Includes closing codes and reasons.
Definition levels.hpp:123
static level const http
Access related to HTTP requests.
Definition levels.hpp:145

Member Data Documentation

◆ access_core

level const 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.

◆ all

level const websocketpp::log::alevel::all = 0xffffffff
static

Definition at line 152 of file levels.hpp.

◆ app

level const websocketpp::log::alevel::app = 0x800
static

Definition at line 143 of file levels.hpp.

◆ connect

level const websocketpp::log::alevel::connect = 0x1
static

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.

◆ control

level const websocketpp::log::alevel::control = 0x4
static

Definition at line 125 of file levels.hpp.

◆ debug_close

level const websocketpp::log::alevel::debug_close = 0x200
static

Definition at line 139 of file levels.hpp.

◆ debug_handshake

level const websocketpp::log::alevel::debug_handshake = 0x100
static

Definition at line 137 of file levels.hpp.

◆ devel

level const websocketpp::log::alevel::devel = 0x400
static

Definition at line 141 of file levels.hpp.

◆ disconnect

level const websocketpp::log::alevel::disconnect = 0x2
static

Definition at line 123 of file levels.hpp.

◆ endpoint

level const websocketpp::log::alevel::endpoint = 0x80
static

Definition at line 135 of file levels.hpp.

◆ fail

level const websocketpp::log::alevel::fail = 0x2000
static

Definition at line 147 of file levels.hpp.

◆ frame_header

level const websocketpp::log::alevel::frame_header = 0x8
static

Definition at line 127 of file levels.hpp.

◆ frame_payload

level const websocketpp::log::alevel::frame_payload = 0x10
static

Definition at line 129 of file levels.hpp.

◆ http

level const websocketpp::log::alevel::http = 0x1000
static

Definition at line 145 of file levels.hpp.

◆ message_header

level const websocketpp::log::alevel::message_header = 0x20
static

Definition at line 131 of file levels.hpp.

◆ message_payload

level const websocketpp::log::alevel::message_payload = 0x40
static

Definition at line 133 of file levels.hpp.

◆ none

level const websocketpp::log::alevel::none = 0x0
static

Definition at line 114 of file levels.hpp.


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