28 #include <boost/date_time/posix_time/posix_time.hpp>
29 #include <boost/filesystem/fstream.hpp>
31 #include "exceptions/WSignalSubscriptionInvalid.h"
32 #include "exceptions/WPreconditionNotMet.h"
45 logger =
new WLogger( output, level );
55 addLogMessage(
"===============================================================================",
"Logger", LL_INFO );
56 addLogMessage(
"= Starting Log Session =",
"Logger", LL_INFO );
57 addLogMessage(
"===============================================================================",
"Logger", LL_INFO );
80 throw new WSignalSubscriptionInvalid( std::string(
"Signal could not be subscribed. The event is not compatible with the callback." ) );
86 boost::posix_time::ptime t( boost::posix_time::second_clock::local_time() );
87 std::string timeString( to_simple_string( t ) );
88 WLogEntry entry( timeString, message, level, source );
97 ( *i )->printEntry( entry );