33 #include <boost/shared_ptr.hpp>
34 #include <boost/signals2/signal.hpp>
36 #include "WLogEntry.h"
37 #include "WLogStream.h"
38 #include "WStringUtils.h"
39 #include "WSharedSequenceContainer.h"
40 #include "WExportCommon.h"
55 static void startup( std::ostream& output = std::cout, LogLevel level = LL_DEBUG );
82 void setDefaultFormat( std::string format );
89 void setDefaultLogLevel(
const LogLevel& level );
96 std::string getDefaultFormat();
104 void addLogMessage( std::string message, std::string source =
"", LogLevel level = LL_DEBUG );
141 WLogger( std::ostream& output, LogLevel level );
191 template<
typename T >
WStreamedLogger operator<<(
const T& loggable );
195 typedef std::basic_ostream< char, std::char_traits< char > > OutStreamType;
196 typedef OutStreamType& ( *StreamManipulatorFunctor )( OutStreamType& );
225 Buffer(
const std::string& source, LogLevel level );
249 : m_buffer( new
Buffer( source, level ) )
255 using string_utils::operator<<;
294 return _wlog( source, LL_ERROR );
305 return _wlog( source, LL_WARNING );
316 return _wlog( source, LL_INFO );
327 return _wlog( source, LL_DEBUG );