28#define BOOST_TEST_MODULE basic_log
29#include <boost/test/unit_test.hpp>
60 std::stringstream out;
61 access_log
logger(0xffffffff,&out);
64 logger.clear_channels(0xffffffff);
69 BOOST_CHECK( out.str().size() == 0 );
75 std::stringstream out;
76 access_log
logger(0xffffffff,&out);
78 logger.set_channels(0xffffffff);
82 BOOST_CHECK( out.str().size() > 0 );
87 std::stringstream out;
94 BOOST_CHECK( out.str().size() > 0 );
97#ifdef _WEBSOCKETPP_MOVE_SEMANTICS_
99 std::stringstream out;
104 logger2.set_channels(0xffffffff);
106 BOOST_CHECK( out.str().size() > 0 );
BOOST_AUTO_TEST_CASE(is_token_char)
websocketpp::log::basic< websocketpp::concurrency::basic, websocketpp::log::alevel > basic_access_log_type
Basic logger that outputs to an ostream.
void set_channels(level channels)
void write(level channel, std::string const &msg)
Write a string message to the given channel.
static level const devel
Development messages (warning: very chatty)
static level const rerror