Boost logo

Boost-Commit :

From: john.groups_at_[hidden]
Date: 2008-01-11 00:55:01


Author: jtorjo
Date: 2008-01-11 00:55:00 EST (Fri, 11 Jan 2008)
New Revision: 42673
URL: http://svn.boost.org/trac/boost/changeset/42673

Log:
[logging]
v0.13.9, 11 jan 2008
- solved bug - when used LOG_ in switch - thanks to Todd Neal!
Text files modified:
   sandbox/logging/boost/logging/detail/cache_before_init_macros.hpp | 7 ++++---
   sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp | 4 +++-
   sandbox/logging/lib/logging/tests/test_rolling_file/test.cpp | 7 ++++++-
   3 files changed, 13 insertions(+), 5 deletions(-)

Modified: sandbox/logging/boost/logging/detail/cache_before_init_macros.hpp
==============================================================================
--- sandbox/logging/boost/logging/detail/cache_before_init_macros.hpp (original)
+++ sandbox/logging/boost/logging/detail/cache_before_init_macros.hpp 2008-01-11 00:55:00 EST (Fri, 11 Jan 2008)
@@ -48,7 +48,7 @@
 // Messages that were logged before initializing the log - cache the message & the filter
 
 #define BOOST_LOG_USE_LOG_LOCAL_CLASS(l, do_func, is_log_enabled, local_class, param_name) \
- struct local_class { \
+ if (false) ; else struct local_class { \
         static bool is_enabled_callback() { return (is_log_enabled); } \
         local_class (const void * p) { \
             if ( p) \
@@ -62,8 +62,9 @@
 
 
 #define BOOST_LOG_USE_LOG(l, do_func, is_log_enabled) \
- BOOST_LOG_USE_LOG_LOCAL_CLASS( l, do_func, is_log_enabled, \
- BOOST_LOG_CONCATENATE(local_class_,__LINE__), BOOST_LOG_CONCATENATE(param_,__LINE__) )
+ BOOST_LOG_USE_LOG_LOCAL_CLASS( l, do_func, is_log_enabled, local_class_, param_ )
+// BOOST_LOG_USE_LOG_LOCAL_CLASS( l, do_func, is_log_enabled, \
+ // BOOST_LOG_CONCATENATE(local_class_,__LINE__), BOOST_LOG_CONCATENATE(param_,__LINE__) )
 
 
 #elif defined( BOOST_LOG_BEFORE_INIT_USE_LOG_ALL)

Modified: sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp
==============================================================================
--- sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp (original)
+++ sandbox/logging/boost/logging/detail/raw_doc/changelog.hpp 2008-01-11 00:55:00 EST (Fri, 11 Jan 2008)
@@ -1,7 +1,9 @@
 /**
 @page page_changelog Changelog
 
-_at_section changelog_cur_ver Current Version: v0.13.7, 8 jan 2008
+@section changelog_cur_ver Current Version: v0.13.9, 11 jan 2008
+- solved bug - when used LOG_ in switch - thanks to Todd Neal!
+- added test for formatter::file
 - included <map> in destination::named - many thanks Jens Seidel!
 - added Jamfiles for building examples/tests - not fully tested yet, since had problems buidling latest boost from SVN
 - added docs about caching messages

Modified: sandbox/logging/lib/logging/tests/test_rolling_file/test.cpp
==============================================================================
--- sandbox/logging/lib/logging/tests/test_rolling_file/test.cpp (original)
+++ sandbox/logging/lib/logging/tests/test_rolling_file/test.cpp 2008-01-11 00:55:00 EST (Fri, 11 Jan 2008)
@@ -1,8 +1,13 @@
 /*
- Tests ...
+ Tests rolling file
 */
 
 #include <boost/logging/logging.hpp>
 
 int main() {
+ write_to_clean_rolling_file();
+ write_to_existing_rolling_file();
+ test_contents();
+ write_to_too_full_rolling_file();
+ test_contents_after_writing_to_full_rolling_file();
 }


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