26 #ifndef Gw_LogCollector
27 #define Gw_LogCollector
28 #define Gw_LOGCOLLECTOR_H Gw_LogCollector
55 bool fIsDeleteByCentralLog;
83 {
return fIsDeleteByCentralLog; }
93 std::ostream *fOutputStream;
void SetLevelFiltering(unsigned short min, unsigned short max)
LogMessages processed by the LogCollector if their level is between min and max.
Base class for a Log collector.
virtual ~OStreamCollector()
virtual void DoCollect(LogMessage &)
write the message in a file
Base class for a Log message.
virtual std::string & GetName()
OStreamCollector(const char *, bool isdelbycental=false)
unsigned short fMinLevel
to send to the log server only message having their level between min and max
Base class for a Log collector.
LogCollector(const char *, bool isdelbycental=false)
static LogCollector * theCollector()
return the current logcollector
virtual void DoCollect(LogMessage &)
Default, collect nothing !
virtual bool IsDeleteByCentralLog() const
if true, the collector is deleted by the central log