WebSocket++  0.8.3-dev
C++ websocket client/server library
Public Member Functions | Protected Types | Protected Attributes | List of all members
websocketpp::log::basic< concurrency, names > Class Template Reference

Basic logger that outputs to an ostream. More...

#include <basic.hpp>

Inheritance diagram for websocketpp::log::basic< concurrency, names >:
websocketpp::log::syslog< concurrency, names >

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.
 
 basic (basic< concurrency, names > const &other)
 Copy constructor.
 
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
 

Detailed Description

template<typename concurrency, typename names>
class websocketpp::log::basic< concurrency, names >

Basic logger that outputs to an ostream.

Definition at line 59 of file basic.hpp.

Member Function Documentation

◆ write() [1/2]

template<typename concurrency , typename names >
void websocketpp::log::basic< concurrency, names >::write ( level  channel,
char const *  msg 
)
inline

Write a cstring message to the given channel.

Parameters
channelThe channel to write to
msgThe message to write

Definition at line 151 of file basic.hpp.

◆ write() [2/2]

template<typename concurrency , typename names >
void websocketpp::log::basic< concurrency, names >::write ( level  channel,
std::string const &  msg 
)
inline

Write a string message to the given channel.

Parameters
channelThe channel to write to
msgThe message to write

Definition at line 137 of file basic.hpp.


The documentation for this class was generated from the following file: