Stub logger that ignores all input. More...
#include <stub.hpp>
Public Member Functions | |
stub (channel_type_hint::value) | |
Construct the logger. More... | |
stub (level, channel_type_hint::value) | |
Construct the logger. More... | |
_WEBSOCKETPP_CONSTEXPR_TOKEN_ | stub () |
void | set_channels (level) |
Dynamically enable the given list of channels. More... | |
void | clear_channels (level) |
Dynamically disable the given list of channels. More... | |
void | write (level, std::string const &) |
Write a string message to the given channel. More... | |
void | write (level, char const *) |
Write a cstring message to the given channel. More... | |
_WEBSOCKETPP_CONSTEXPR_TOKEN_ bool | static_test (level) const |
Test whether a channel is statically enabled. More... | |
bool | dynamic_test (level) |
Test whether a channel is dynamically enabled. More... | |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
Dynamically enable the given list of channels.
All operations on the stub logger are no-ops and all arguments are ignored
channels | The package of channels to enable |
Definition at line 64 of file stub.hpp.
Referenced by websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::endpoint(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::set_access_channels(), and websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::set_error_channels().
|
inline |
Dynamically disable the given list of channels.
All operations on the stub logger are no-ops and all arguments are ignored
channels | The package of channels to disable |
Definition at line 73 of file stub.hpp.
Referenced by websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::clear_access_channels(), and websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::clear_error_channels().
|
inline |
Write a string message to the given channel.
Writing on the stub logger is a no-op and all arguments are ignored
channel | The channel to write to |
msg | The message to write |
Definition at line 82 of file stub.hpp.
Referenced by websocketpp::transport::asio::endpoint< config >::async_accept(), websocketpp::transport::asio::connection< config >::async_read_at_least(), websocketpp::transport::asio::connection< config >::async_shutdown(), websocketpp::transport::asio::connection< config >::cancel_socket_checked(), websocketpp::client< websocketpp::config::asio_client >::client(), websocketpp::client< websocketpp::config::asio_client >::connect(), websocketpp::transport::asio::connection< config >::connection(), websocketpp::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::endpoint(), websocketpp::transport::asio::connection< config >::get_remote_endpoint(), websocketpp::server< websocketpp::config::asio >::handle_accept(), 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::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::transport::asio::endpoint< config >::handle_timer(), websocketpp::transport::asio::connection< config >::init(), websocketpp::transport::asio::endpoint< config >::init_asio(), websocketpp::transport::asio::endpoint< config >::listen(), telemetry_client::on_close(), telemetry_client::on_fail(), telemetry_server::on_http(), on_message(), telemetry_client::on_open(), on_ping(), telemetry_server::on_timer(), websocketpp::transport::asio::connection< config >::post_init(), websocketpp::transport::asio::connection< config >::proxy_read(), websocketpp::transport::asio::connection< config >::proxy_write(), websocketpp::transport::iostream::endpoint< config >::register_ostream(), telemetry_client::run(), telemetry_server::run(), 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::endpoint< connection< websocketpp::config::asio >, websocketpp::config::asio >::set_validate_handler(), perftest::start(), websocketpp::transport::asio::endpoint< config >::stop_listening(), and telemetry_client::telemetry_loop().
|
inline |
|
inline |
Test whether a channel is statically enabled.
The stub logger has no channels so all arguments are ignored and static_test
always returns false.
channel | The package of channels to test |
Definition at line 100 of file stub.hpp.
Referenced by websocketpp::transport::asio::connection< config >::async_read_at_least(), websocketpp::transport::asio::connection< config >::async_shutdown(), websocketpp::transport::asio::connection< config >::handle_async_shutdown(), websocketpp::transport::asio::connection< config >::handle_post_init(), websocketpp::transport::asio::connection< config >::handle_pre_init(), websocketpp::transport::asio::connection< config >::handle_proxy_read(), websocketpp::transport::asio::connection< config >::handle_proxy_write(), websocketpp::transport::asio::connection< config >::init(), websocketpp::transport::asio::connection< config >::post_init(), websocketpp::transport::asio::connection< config >::proxy_read(), and websocketpp::transport::asio::connection< config >::proxy_write().
|
inline |