Basic logger that outputs to an ostream. More...
#include <basic.hpp>

Public Member Functions | |
| basic (channel_type_hint::value h=channel_type_hint::access) | |
| basic (std::ostream *out) | |
| basic (level c, channel_type_hint::value h=channel_type_hint::access) | |
| basic (level c, std::ostream *out) | |
| ~basic () | |
| Destructor. More... | |
| basic (basic< concurrency, names > const &other) | |
| Copy constructor. More... | |
| void | set_ostream (std::ostream *out=&std::cout) |
| void | set_channels (level channels) |
| void | clear_channels (level channels) |
| void | write (level channel, std::string const &msg) |
| Write a string message to the given channel. More... | |
| void | write (level channel, char const *msg) |
| Write a cstring message to the given channel. More... | |
| _WEBSOCKETPP_CONSTEXPR_TOKEN_ bool | static_test (level channel) const |
| bool | dynamic_test (level channel) |
Protected Types | |
| typedef concurrency::scoped_lock_type | scoped_lock_type |
| typedef concurrency::mutex_type | mutex_type |
Protected Attributes | |
| mutex_type | m_lock |
Basic logger that outputs to an ostream.
|
protected |
|
protected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 117 of file basic.hpp.
References websocketpp::log::basic< concurrency, names >::clear_channels(), and websocketpp::log::basic< concurrency, names >::m_lock.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 127 of file basic.hpp.
References websocketpp::log::basic< concurrency, names >::m_lock.
Referenced by websocketpp::log::basic< concurrency, names >::set_channels().
|
inline |
Write a string message to the given channel.
| channel | The channel to write to |
| msg | The message to write |
Definition at line 137 of file basic.hpp.
References websocketpp::log::basic< concurrency, names >::dynamic_test(), and websocketpp::log::basic< concurrency, names >::m_lock.
Referenced by BOOST_AUTO_TEST_CASE().
|
inline |
Write a cstring message to the given channel.
| channel | The channel to write to |
| msg | The message to write |
Definition at line 151 of file basic.hpp.
References websocketpp::log::basic< concurrency, names >::dynamic_test(), and websocketpp::log::basic< concurrency, names >::m_lock.
|
inline |
|
inline |
Definition at line 164 of file basic.hpp.
Referenced by websocketpp::log::syslog< concurrency, names >::write(), and websocketpp::log::basic< concurrency, names >::write().
|
protected |
Definition at line 171 of file basic.hpp.
Referenced by websocketpp::log::basic< concurrency, names >::clear_channels(), websocketpp::log::basic< concurrency, names >::set_channels(), websocketpp::log::syslog< concurrency, names >::write(), and websocketpp::log::basic< concurrency, names >::write().