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... | |
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 |
Special aggregate value representing "no levels".
Definition at line 114 of file levels.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), and main().
|
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< config >::get_supported_versions(), main(), and telemetry_client::telemetry_client().
|
static |
One line for each closed connection. Includes closing codes and reasons.
Definition at line 123 of file levels.hpp.
Referenced by websocketpp::connection< config >::get_supported_versions(), main(), and telemetry_client::telemetry_client().
|
static |
One line per control frame.
Definition at line 125 of file levels.hpp.
Referenced by websocketpp::connection< config >::get_supported_versions().
|
static |
One line per frame, includes the full frame header.
Definition at line 127 of file levels.hpp.
Referenced by websocketpp::connection< config >::write_frame().
|
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< config >::write_frame().
|
static |
Reserved.
Definition at line 131 of file levels.hpp.
|
static |
Reserved.
Definition at line 133 of file levels.hpp.
|
static |
Reserved.
Definition at line 135 of file levels.hpp.
|
static |
Extra information about opening handshakes.
Definition at line 137 of file levels.hpp.
|
static |
Extra information about closing handshakes.
Definition at line 139 of file levels.hpp.
|
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< 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, config >::create_connection(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::endpoint(), websocketpp::connection< 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< config >::handle_close_handshake_timeout(), websocketpp::transport::asio::endpoint< config >::handle_connect(), websocketpp::transport::asio::endpoint< config >::handle_connect_timeout(), websocketpp::connection< config >::handle_open_handshake_timeout(), websocketpp::connection< 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< config >::handle_read_frame(), websocketpp::connection< config >::handle_read_handshake(), websocketpp::connection< config >::handle_read_http_response(), websocketpp::transport::asio::endpoint< config >::handle_resolve(), websocketpp::transport::asio::endpoint< config >::handle_resolve_timeout(), websocketpp::connection< config >::handle_send_http_request(), websocketpp::connection< config >::handle_terminate(), websocketpp::connection< config >::handle_transport_init(), websocketpp::connection< config >::handle_write_frame(), websocketpp::connection< 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< config >::initialize_processor(), websocketpp::endpoint< connection, config >::interrupt(), websocketpp::connection< config >::interrupt(), websocketpp::transport::asio::endpoint< config >::listen(), websocketpp::connection< config >::pause_reading(), websocketpp::connection< config >::ping(), websocketpp::connection< config >::pong(), websocketpp::transport::asio::connection< config >::post_init(), websocketpp::connection< config >::process_handshake_request(), websocketpp::transport::asio::connection< config >::proxy_read(), websocketpp::transport::asio::connection< config >::proxy_write(), websocketpp::connection< config >::read_handshake(), websocketpp::transport::debug::connection< config >::read_some_impl(), websocketpp::transport::iostream::endpoint< config >::register_ostream(), websocketpp::connection< config >::resume_reading(), websocketpp::connection< 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< 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< config >::start(), and websocketpp::connection< config >::terminate().
|
static |
Special channel for application specific logs. Not used by the library.
Definition at line 143 of file levels.hpp.
Referenced by main(), telemetry_client::on_close(), telemetry_client::on_fail(), telemetry_server::on_http(), on_message(), telemetry_client::on_open(), on_ping(), telemetry_server::on_timer(), telemetry_client::run(), telemetry_server::run(), perftest::start(), telemetry_client::telemetry_client(), telemetry_client::telemetry_loop(), and telemetry_server::telemetry_server().
|
static |
Access related to HTTP requests.
Definition at line 145 of file levels.hpp.
Referenced by websocketpp::connection< config >::get_supported_versions(), and websocketpp::connection< config >::process_handshake_request().
|
static |
One line for each failed WebSocket connection with details.
Definition at line 147 of file levels.hpp.
Referenced by websocketpp::connection< config >::get_supported_versions().
|
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().
|
static |
Special aggregate value representing "all levels".
Definition at line 152 of file levels.hpp.
Referenced by BOOST_AUTO_TEST_CASE(), main(), mock_endpoint::mock_endpoint(), perftest::perftest(), run_client(), run_server(), run_server_test(), run_time_limited_client(), telemetry_client::telemetry_client(), telemetry_server::telemetry_server(), utility_server::utility_server(), websocket_endpoint::websocket_endpoint(), and nfd::face::WebSocketChannel::WebSocketChannel().