Boost logo

Boost-Commit :

From: john.groups_at_[hidden]
Date: 2008-02-08 09:47:48


Author: jtorjo
Date: 2008-02-08 09:47:48 EST (Fri, 08 Feb 2008)
New Revision: 43174
URL: http://svn.boost.org/trac/boost/changeset/43174

Log:
[loging]
test_now.cpp - no more syslog test
Text files modified:
   sandbox/logging/libs/logging/internal/vc8/loggingvc8/test_now.cpp | 30 +-----------------------------
   1 files changed, 1 insertions(+), 29 deletions(-)

Modified: sandbox/logging/libs/logging/internal/vc8/loggingvc8/test_now.cpp
==============================================================================
--- sandbox/logging/libs/logging/internal/vc8/loggingvc8/test_now.cpp (original)
+++ sandbox/logging/libs/logging/internal/vc8/loggingvc8/test_now.cpp 2008-02-08 09:47:48 EST (Fri, 08 Feb 2008)
@@ -1,31 +1,3 @@
+
 #include <boost/logging/format.hpp>
 #include <boost/logging/format/formatter/tags.hpp>
-#include <boost/logging/format/formatter/syslog.hpp>
-
-namespace bl = boost::logging;
-typedef bl::tag::holder<bl::default_, bl::tag::level> tag_holder;
-BOOST_LOG_FORMAT_MSG(tag_holder)
-BOOST_LOG_DESTINATION_MSG(tag_holder)
-
-typedef bl::logger_format_write< > logger_type;
-
-#define L_(lvl) BOOST_LOG_USE_LOG_IF_LEVEL(g_l(), g_log_filter(), lvl ) .set_tag( BOOST_LOG_TAG_LEVEL(lvl) )
-
-BOOST_DEFINE_LOG_FILTER(g_log_filter, bl::level::holder )
-BOOST_DEFINE_LOG(g_l, logger_type)
-
-int main() {
- g_l()->writer().add_formatter( bl::formatter::idx(), "[%] " );
- g_l()->writer().add_formatter( bl::formatter::append_newline() );
- // write to cout and syslog
- g_l()->writer().add_destination( bl::destination::cout() );
- g_l()->writer().add_destination( bl::destination::syslog() );
- g_l()->mark_as_initialized();
-
- int i = 1;
- L_(debug) << "this is so cool " << i++;
- L_(error) << "first error " << i++;
-}
-
-
-


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk