#define HH_SENF_Utils_Logger_IOStreamTarget_ 1
// Custom includes
-#include <boost/utility.hpp>
-#include <boost/scoped_ptr.hpp>
#include "Target.hh"
#include "LogFormat.hh"
//#include "IOStreamTarget.mpp"
-///////////////////////////////hh.p////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
namespace senf {
namespace log {
\verbatim <date> [<level>][<area>] <message> \endverbatim
The \e area will be omitted if it is \c senf::log::DefaultArea.
-
+
\warning The class keeps a reference to the passed stream.
-
+
\ingroup targets
*/
class IOStreamTarget
: public Target, private detail::LogFormat
{
public:
- ///////////////////////////////////////////////////////////////////////////
+ //-////////////////////////////////////////////////////////////////////////
///\name Structors and default members
- ///@{
+ //\{
IOStreamTarget(std::string const & name, std::ostream & os);
- ///@}
- ///////////////////////////////////////////////////////////////////////////
+ //\}
+ //-////////////////////////////////////////////////////////////////////////
using detail::LogFormat::showTime;
using detail::LogFormat::showStream;
using detail::LogFormat::showArea;
using detail::LogFormat::timeFormat;
using detail::LogFormat::tag;
-
+
protected:
- void v_write(time_type timestamp, std::string const & stream,
- std::string const & area, unsigned level,
+ void v_write(time_type timestamp, std::string const & stream,
+ std::string const & area, unsigned level,
std::string const & message);
private:
}}
-///////////////////////////////hh.e////////////////////////////////////////
+//-/////////////////////////////////////////////////////////////////////////////////////////////////
#include "IOStreamTarget.cci"
//#include "IOStreamTarget.ct"
//#include "IOStreamTarget.cti"