Stub logger that ignores all input.
More...
#include <stub.hpp>
Stub logger that ignores all input.
Definition at line 40 of file stub.hpp.
Construct the logger.
- Parameters
-
hint | A channel type specific hint for how to construct the logger |
Definition at line 46 of file stub.hpp.
Construct the logger.
- Parameters
-
default_channels | A set of channels to statically enable |
hint | A channel type specific hint for how to construct the logger |
Definition at line 53 of file stub.hpp.
void websocketpp::log::stub::clear_channels |
( |
level |
| ) |
|
|
inline |
Dynamically disable the given list of channels.
All operations on the stub logger are no-ops and all arguments are ignored
- Parameters
-
channels | The package of channels to disable |
Definition at line 72 of file stub.hpp.
bool websocketpp::log::stub::dynamic_test |
( |
level |
| ) |
|
|
inline |
Test whether a channel is dynamically enabled.
The stub logger has no channels so all arguments are ignored and dynamic_test
always returns false.
- Parameters
-
channel | The package of channels to test |
Definition at line 110 of file stub.hpp.
void websocketpp::log::stub::set_channels |
( |
level |
| ) |
|
|
inline |
Dynamically enable the given list of channels.
All operations on the stub logger are no-ops and all arguments are ignored
- Parameters
-
channels | The package of channels to enable |
Definition at line 63 of file stub.hpp.
_WEBSOCKETPP_CONSTEXPR_TOKEN_ bool websocketpp::log::stub::static_test |
( |
level |
| ) |
const |
|
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.
- Parameters
-
channel | The package of channels to test |
Definition at line 99 of file stub.hpp.
void websocketpp::log::stub::write |
( |
level |
, |
|
|
std::string const & |
|
|
) |
| |
|
inline |
Write a string message to the given channel.
Writing on the stub logger is a no-op and all arguments are ignored
- Parameters
-
channel | The package of channels to write to |
msg | The message to write |
Definition at line 81 of file stub.hpp.
void websocketpp::log::stub::write |
( |
level |
, |
|
|
char const * |
|
|
) |
| |
|
inline |
Write a cstring message to the given channel.
Writing on the stub logger is a no-op and all arguments are ignored
- Parameters
-
channel | The package of channels to write to |
msg | The message to write |
Definition at line 90 of file stub.hpp.
The documentation for this class was generated from the following file: