|
Boost-Commit : |
From: john.groups_at_[hidden]
Date: 2007-10-18 02:09:58
Author: jtorjo
Date: 2007-10-18 02:09:57 EDT (Thu, 18 Oct 2007)
New Revision: 40145
URL: http://svn.boost.org/trac/boost/changeset/40145
Log:
[logging]
fixed small typos so that this compiles fine for gcc 4.3
implemented destinations (not tested)
Added:
sandbox/logging/LICENSE_1_0.txt (contents, props changed)
sandbox/logging/generating_the_docs.txt
- copied unchanged from r39969, /sandbox/logging/generating the docs.txt
Removed:
sandbox/logging/generating the docs.txt
Text files modified:
sandbox/logging/boost/logging/detail/fwd.hpp | 2 +-
sandbox/logging/boost/logging/detail/util.hpp | 4 +++-
sandbox/logging/boost/logging/filter.hpp | 2 +-
sandbox/logging/boost/logging/format/destination/defaults.hpp | 3 +++
sandbox/logging/boost/logging/level.hpp | 10 +++++-----
sandbox/logging/boost/logging/ts/ts_resource.hpp | 2 +-
sandbox/logging/lib/logging/tests/format/test_manip_w_msgroute.cpp | 2 ++
sandbox/logging/lib/logging/tests/template.cpp | 13 ++++---------
sandbox/logging/lib/logging/tests/test_multiple_simple_logs.cpp | 2 ++
9 files changed, 22 insertions(+), 18 deletions(-)
Added: sandbox/logging/LICENSE_1_0.txt
==============================================================================
--- (empty file)
+++ sandbox/logging/LICENSE_1_0.txt 2007-10-18 02:09:57 EDT (Thu, 18 Oct 2007)
@@ -0,0 +1,23 @@
+Boost Software License - Version 1.0 - August 17th, 2003
+
+Permission is hereby granted, free of charge, to any person or organization
+obtaining a copy of the software and accompanying documentation covered by
+this license (the "Software") to use, reproduce, display, distribute,
+execute, and transmit the Software, and to prepare derivative works of the
+Software, and to permit third-parties to whom the Software is furnished to
+do so, all subject to the following:
+
+The copyright notices in the Software and this entire statement, including
+the above license grant, this restriction and the following disclaimer,
+must be included in all copies of the Software, in whole or in part, and
+all derivative works of the Software, unless such copies or derivative
+works are solely in the form of machine-executable object code generated by
+a source language processor.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
+SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
+FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
Modified: sandbox/logging/boost/logging/detail/fwd.hpp
==============================================================================
--- sandbox/logging/boost/logging/detail/fwd.hpp (original)
+++ sandbox/logging/boost/logging/detail/fwd.hpp 2007-10-18 02:09:57 EDT (Thu, 18 Oct 2007)
@@ -47,7 +47,7 @@
typedef types<override>::filter_type filter_type;
typedef types<override>::mutex mutex;
- namespace writer {};
+ namespace writer {}
Modified: sandbox/logging/boost/logging/detail/util.hpp
==============================================================================
--- sandbox/logging/boost/logging/detail/util.hpp (original)
+++ sandbox/logging/boost/logging/detail/util.hpp 2007-10-18 02:09:57 EDT (Thu, 18 Oct 2007)
@@ -32,12 +32,14 @@
/*
it makes sure this value gets created before it's used
+
+ FIXME most likely I don't need this????
*/
template<class type> struct ensure_created_before_used {
// FIXME I need to figure out how to do this - probably by just holding char[sizeof(T) * 2] or so - align it and that's it and have an extra bool
ensure_created_before_used(const type & val = type() ) : val(val) {}
type & operator()() { return *this; }
- const type & operator()() { return *this; }
+ const type & operator()() const { return *this; }
private:
type val;
};
Modified: sandbox/logging/boost/logging/filter.hpp
==============================================================================
--- sandbox/logging/boost/logging/filter.hpp (original)
+++ sandbox/logging/boost/logging/filter.hpp 2007-10-18 02:09:57 EDT (Thu, 18 Oct 2007)
@@ -265,7 +265,7 @@
/**
*/
- template<class p1, class p2> logger(const init_both_t&, p1 a1, p2 a2) : process_base(a1), filter(a2) {}
+ template<class p1, class p2> logger(const init_both_t&, p1 a1, p2 a2) : filter(a2), process_base(a1) {}
BOOST_LOGGING_FORWARD_CONSTRUCTOR(logger, process_base)
Modified: sandbox/logging/boost/logging/format/destination/defaults.hpp
==============================================================================
--- sandbox/logging/boost/logging/format/destination/defaults.hpp (original)
+++ sandbox/logging/boost/logging/format/destination/defaults.hpp 2007-10-18 02:09:57 EDT (Thu, 18 Oct 2007)
@@ -52,6 +52,9 @@
#else
::OutputDebugWindowW( convert_dest::do_convert(msg, into<const wchar_t*>() ) );
#endif
+#else
+ // non windows
+ msg; // so that there's no warning
#endif
}
};
Modified: sandbox/logging/boost/logging/level.hpp
==============================================================================
--- sandbox/logging/boost/logging/level.hpp (original)
+++ sandbox/logging/boost/logging/level.hpp 2007-10-18 02:09:57 EDT (Thu, 18 Oct 2007)
@@ -30,11 +30,11 @@
By default we have these levels:
- info (smallest level),
- warning ,
- debug ,
- error ,
- fatal (highest level)
+ - debug (smallest level),
+ - info,
+ - warning ,
+ - error ,
+ - fatal (highest level)
Depending on which level is enabled for your application, some messages will reach the log: those
messages having at least that level. For instance, if info level is enabled, all
Modified: sandbox/logging/boost/logging/ts/ts_resource.hpp
==============================================================================
--- sandbox/logging/boost/logging/ts/ts_resource.hpp (original)
+++ sandbox/logging/boost/logging/ts/ts_resource.hpp 2007-10-18 02:09:57 EDT (Thu, 18 Oct 2007)
@@ -114,7 +114,7 @@
typedef tls_resource_with_cache<type> self_type;
- tls_resource_with_cache(const type& val , int cache_millis ) : m_val(val) {}
+ tls_resource_with_cache(const type& val , int /* cache_millis */ ) : m_val(val) {}
public:
Deleted: sandbox/logging/generating the docs.txt
==============================================================================
--- sandbox/logging/generating the docs.txt 2007-10-18 02:09:57 EDT (Thu, 18 Oct 2007)
+++ (empty file)
@@ -1,3 +0,0 @@
-To generate the documentation, go into logging\detail\raw_doc,
-and use the Doxyfile from there.
-
Modified: sandbox/logging/lib/logging/tests/format/test_manip_w_msgroute.cpp
==============================================================================
--- sandbox/logging/lib/logging/tests/format/test_manip_w_msgroute.cpp (original)
+++ sandbox/logging/lib/logging/tests/format/test_manip_w_msgroute.cpp 2007-10-18 02:09:57 EDT (Thu, 18 Oct 2007)
@@ -105,6 +105,8 @@
void operator()(param msg) const {
#ifdef BOOST_WINDOWS
::OutputDebugStringA( msg.c_str() );
+#else
+ msg; // so that there's no warning
#endif
}
};
Modified: sandbox/logging/lib/logging/tests/template.cpp
==============================================================================
--- sandbox/logging/lib/logging/tests/template.cpp (original)
+++ sandbox/logging/lib/logging/tests/template.cpp 2007-10-18 02:09:57 EDT (Thu, 18 Oct 2007)
@@ -1,4 +1,4 @@
-// test_Template.cpp
+// test_Template.hpp
// Boost Logging library
//
@@ -6,15 +6,10 @@
//
// Copyright (C) 2007 John Torjo (see www.torjo.com for email)
//
-// Permission to copy, use, sell and distribute this software is granted
-// provided this copyright notice appears in all copies.
-// Permission to modify the code and to distribute modified code is granted
-// provided this copyright notice appears in all copies, and a notice
-// that the code was modified is included with the copyright notice.
+// Distributed under the Boost Software License, Version 1.0.
+// (See accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
//
-// This software is provided "as is" without express or implied warranty,
-// and with no claim as to its suitability for any purpose.
-
// See http://www.boost.org for updates, documentation, and revision history.
// See http://www.torjo.com/log2/ for more details
Modified: sandbox/logging/lib/logging/tests/test_multiple_simple_logs.cpp
==============================================================================
--- sandbox/logging/lib/logging/tests/test_multiple_simple_logs.cpp (original)
+++ sandbox/logging/lib/logging/tests/test_multiple_simple_logs.cpp 2007-10-18 02:09:57 EDT (Thu, 18 Oct 2007)
@@ -45,6 +45,8 @@
void operator()(const std::string & msg) const {
#ifdef BOOST_WINDOWS
::OutputDebugStringA( (msg + "\n").c_str() );
+#else
+ msg; // so that there's no warning
#endif
}
};
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