Basic logger that outputs to syslog. More...
#include <syslog.hpp>


Public Types | |
| typedef basic< concurrency, names > | base |
Public Member Functions | |
| syslog (channel_type_hint::value hint=channel_type_hint::access) | |
| Construct the logger. More... | |
| syslog (level channels, channel_type_hint::value hint=channel_type_hint::access) | |
| Construct the logger. More... | |
| 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... | |
Public Member Functions inherited from websocketpp::log::basic< concurrency, names > | |
| 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) |
Additional Inherited Members | |
Protected Types inherited from websocketpp::log::basic< concurrency, names > | |
| typedef concurrency::scoped_lock_type | scoped_lock_type |
| typedef concurrency::mutex_type | mutex_type |
Protected Attributes inherited from websocketpp::log::basic< concurrency, names > | |
| mutex_type | m_lock |
Basic logger that outputs to syslog.
Definition at line 46 of file syslog.hpp.
| typedef basic<concurrency, names> websocketpp::log::syslog< concurrency, names >::base |
Definition at line 48 of file syslog.hpp.
|
inline |
Construct the logger.
| hint | A channel type specific hint for how to construct the logger |
Definition at line 54 of file syslog.hpp.
Referenced by websocketpp::log::syslog< concurrency, names >::write().
|
inline |
Construct the logger.
| channels | A set of channels to statically enable |
| hint | A channel type specific hint for how to construct the logger |
Definition at line 63 of file syslog.hpp.
|
inline |
Write a string message to the given channel.
| channel | The channel to write to |
| msg | The message to write |
Definition at line 72 of file syslog.hpp.
|
inline |
Write a cstring message to the given channel.
| channel | The channel to write to |
| msg | The message to write |
Definition at line 81 of file syslog.hpp.
References _WEBSOCKETPP_CONSTEXPR_TOKEN_, websocketpp::log::channel_type_hint::access, websocketpp::log::elevel::devel, websocketpp::log::basic< concurrency, names >::dynamic_test(), websocketpp::log::elevel::fatal, websocketpp::log::elevel::info, websocketpp::log::elevel::library, websocketpp::log::basic< concurrency, names >::m_lock, websocketpp::log::elevel::rerror, websocketpp::log::syslog< concurrency, names >::syslog(), and websocketpp::log::elevel::warn.