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