NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
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. More...
 

Static Public Attributes

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

Detailed Description

Package of log levels for logging access events.

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.

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

◆ none

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

Special aggregate value representing "no levels".

Definition at line 114 of file levels.hpp.

Referenced by BOOST_AUTO_TEST_CASE(), and main().

◆ connect

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

Referenced by websocketpp::client< websocketpp::config::asio_client >::connect(), websocketpp::connection< stub_config >::get_supported_versions(), main(), and telemetry_client::telemetry_client().

◆ disconnect

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

One line for each closed connection. Includes closing codes and reasons.

Definition at line 123 of file levels.hpp.

Referenced by websocketpp::connection< stub_config >::get_supported_versions(), main(), and telemetry_client::telemetry_client().

◆ control

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

One line per control frame.

Definition at line 125 of file levels.hpp.

Referenced by websocketpp::connection< stub_config >::get_supported_versions().

◆ frame_header

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

One line per frame, includes the full frame header.

Definition at line 127 of file levels.hpp.

Referenced by websocketpp::connection< stub_config >::write_frame().

◆ frame_payload

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

One line per frame, includes the full message payload (warning: chatty)

Definition at line 129 of file levels.hpp.

Referenced by main(), utility_server::utility_server(), and websocketpp::connection< stub_config >::write_frame().

◆ message_header

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

Reserved.

Definition at line 131 of file levels.hpp.

◆ message_payload

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

Reserved.

Definition at line 133 of file levels.hpp.

◆ endpoint

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

Reserved.

Definition at line 135 of file levels.hpp.

◆ debug_handshake

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

Extra information about opening handshakes.

Definition at line 137 of file levels.hpp.

◆ debug_close

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

Extra information about closing handshakes.

Definition at line 139 of file levels.hpp.

◆ devel

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

Development messages (warning: very chatty)

Definition at line 141 of file levels.hpp.

Referenced by websocketpp::transport::asio::endpoint< config >::async_accept(), websocketpp::transport::asio::endpoint< config >::async_connect(), websocketpp::transport::stub::connection< config >::async_read_at_least(), websocketpp::transport::debug::connection< config >::async_read_at_least(), websocketpp::transport::iostream::connection< config >::async_read_at_least(), websocketpp::transport::asio::connection< config >::async_read_at_least(), websocketpp::transport::iostream::connection< config >::async_shutdown(), websocketpp::transport::asio::connection< config >::async_shutdown(), websocketpp::transport::stub::connection< config >::async_write(), websocketpp::transport::debug::connection< config >::async_write(), websocketpp::transport::iostream::connection< config >::async_write(), BOOST_AUTO_TEST_CASE(), websocketpp::transport::asio::connection< config >::cancel_socket_checked(), websocketpp::client< websocketpp::config::asio_client >::client(), websocketpp::connection< stub_config >::close(), websocketpp::transport::stub::connection< config >::connection(), websocketpp::transport::debug::connection< config >::connection(), websocketpp::transport::iostream::connection< config >::connection(), websocketpp::transport::asio::connection< config >::connection(), websocketpp::connection< stub_config >::connection(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::create_connection(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::endpoint(), websocketpp::connection< stub_config >::get_supported_versions(), websocketpp::transport::asio::endpoint< config >::handle_accept(), websocketpp::transport::asio::connection< config >::handle_async_read(), websocketpp::transport::asio::connection< config >::handle_async_shutdown(), websocketpp::transport::asio::connection< config >::handle_async_shutdown_timeout(), websocketpp::transport::asio::connection< config >::handle_async_write(), websocketpp::connection< stub_config >::handle_close_handshake_timeout(), websocketpp::transport::asio::endpoint< config >::handle_connect(), websocketpp::transport::asio::endpoint< config >::handle_connect_timeout(), websocketpp::connection< stub_config >::handle_open_handshake_timeout(), websocketpp::connection< stub_config >::handle_pause_reading(), websocketpp::transport::asio::connection< config >::handle_post_init(), websocketpp::transport::asio::connection< config >::handle_post_init_timeout(), websocketpp::transport::asio::connection< config >::handle_pre_init(), websocketpp::transport::asio::connection< config >::handle_proxy_read(), websocketpp::transport::asio::connection< config >::handle_proxy_timeout(), websocketpp::transport::asio::connection< config >::handle_proxy_write(), websocketpp::connection< stub_config >::handle_read_frame(), websocketpp::connection< stub_config >::handle_read_handshake(), websocketpp::connection< stub_config >::handle_read_http_response(), websocketpp::transport::asio::endpoint< config >::handle_resolve(), websocketpp::transport::asio::endpoint< config >::handle_resolve_timeout(), websocketpp::connection< stub_config >::handle_send_http_request(), websocketpp::connection< stub_config >::handle_terminate(), websocketpp::connection< stub_config >::handle_transport_init(), websocketpp::connection< stub_config >::handle_write_frame(), websocketpp::connection< stub_config >::handle_write_http_response(), websocketpp::transport::stub::connection< config >::init(), websocketpp::transport::debug::connection< config >::init(), websocketpp::transport::asio::connection< config >::init(), websocketpp::transport::iostream::connection< config >::init(), websocketpp::transport::asio::endpoint< config >::init(), websocketpp::transport::asio::endpoint< config >::init_asio(), websocketpp::connection< stub_config >::initialize_processor(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::interrupt(), websocketpp::connection< stub_config >::interrupt(), websocketpp::transport::asio::endpoint< config >::listen(), websocketpp::connection< stub_config >::pause_reading(), websocketpp::connection< stub_config >::ping(), websocketpp::connection< stub_config >::pong(), websocketpp::transport::asio::connection< config >::post_init(), websocketpp::connection< stub_config >::process_handshake_request(), websocketpp::transport::asio::connection< config >::proxy_read(), websocketpp::transport::asio::connection< config >::proxy_write(), websocketpp::connection< stub_config >::read_handshake(), websocketpp::transport::debug::connection< config >::read_some_impl(), websocketpp::transport::iostream::endpoint< config >::register_ostream(), websocketpp::connection< stub_config >::resume_reading(), websocketpp::connection< stub_config >::send(), websocketpp::server< websocketpp::config::asio >::server(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::set_close_handler(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::set_fail_handler(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::set_http_handler(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::set_interrupt_handler(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::set_message_handler(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::set_open_handler(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::set_ping_handler(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::set_pong_handler(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::set_pong_timeout_handler(), websocketpp::connection< stub_config >::set_termination_handler(), websocketpp::transport::debug::connection< config >::set_timer(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::set_validate_handler(), websocketpp::connection< stub_config >::start(), and websocketpp::connection< stub_config >::terminate().

◆ app

◆ http

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

◆ fail

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

One line for each failed WebSocket connection with details.

Definition at line 147 of file levels.hpp.

Referenced by websocketpp::connection< stub_config >::get_supported_versions().

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

Referenced by telemetry_server::telemetry_server().

◆ all


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