#include <vector>
#include <boost/utility.hpp>
#include <boost/type_traits/is_base_of.hpp>
-#include <boost/type_traits/is_pod.hpp>
+#include <boost/type_traits/has_trivial_constructor.hpp>
+#include <boost/type_traits/has_trivial_destructor.hpp>
#include <boost/static_assert.hpp>
#include "../Utils/pool_alloc_mixin.hh"
#include "PacketTypes.hh"
# ifdef BOOST_HAS_TYPE_TRAITS_INTRINSICS
- BOOST_STATIC_ASSERT(( boost::is_pod<Annotation>::value || Complex ));
+ BOOST_STATIC_ASSERT(( (boost::has_trivial_constructor<Annotation>::value
+ && boost::has_trivial_destructor<Annotation>::value)
+ || Complex ));
# endif
};
The FileTarget will save all %log messages in the given file. Messages will be appended at
the end of the file.
+ \code
+ senf::log::FileTarget target ("file.name");
+
+ // Route all messages to this file.
+ target.route();
+ \endcode
+
After %log files have been rotated, the reopen() member should be called to create a new %log
file.
The SyslogTarget will send all log messages to the syslog at the given facility.
+ \code
+ senf::log::SyslogTarget syslog;
+
+ // Route all messages to the syslog
+ syslog.route();
+ \endcode
+
Valid facility values (taken from <tt>man 3 syslog</tt>):
\par ""
<tt>LOG_AUTHPRIV</tt>, <tt>LOG_CRON</tt>, <tt>LOG_DAEMON</tt>, <tt>LOG_FTP</tt>,