29 #ifndef CASA_LOGSINKINTERFACE_H 30 #define CASA_LOGSINKINTERFACE_H 33 #include <casacore/casa/aips.h> 34 #include <casacore/casa/Logging/LogFilterInterface.h> 156 virtual void cerrToo(
bool cerr2);
virtual ~LogSinkInterface()
void setTaskName(const String &theTask)
static String localId()
Returns the id for this class...
virtual String getMessage(uInt i) const
Abstract base class for filtering LogMessages.
TableExprNode time(const TableExprNode &node)
virtual String getPriority(uInt i) const
virtual const LogFilterInterface & filter() const
Get/set the filter.
virtual void flush(Bool global=True)
Write any pending output.
LogFilterInterface * filter_p
Accepts LogMessages and posts them to some destination.
virtual uInt nelements() const
Get number of messages in sink.
virtual void clearLocally()
Clear the local sink (i.e.
virtual String id() const =0
Returns the id of the LogSink in use...
virtual void cerrToo(bool cerr2)
Write to cerr too.
bool Bool
Define the standard types used by Casacore.
LogSinkInterface & operator=(const LogSinkInterface &)
virtual String getObjectID(uInt i) const
virtual String getLocation(uInt i) const
String: the storage and methods of handling collections of characters.
virtual Bool postLocally(const LogMessage &message)=0
This function must be over-ridden in derived classes.
virtual Double getTime(uInt i) const
Get given part of the i-th message from the sink.
Informational log messages with with time, priority, and origin.
this file contains all the compiler specific defines
virtual void writeLocally(Double time, const String &message, const String &priority, const String &location, const String &objectID)
Write a message (usually from another logsink) into the local one.
LogSinkInterface()
Create with a NORMAL filter.