29 #ifndef CASA_LOGSINKINTERFACE_H
30 #define CASA_LOGSINKINTERFACE_H
156 virtual void cerrToo(
bool cerr2);
virtual ~LogSinkInterface()
void setTaskName(const String &theTask)
static String localId()
Returns the id for this class...
Abstract base class for filtering LogMessages.
TableExprNode time(const TableExprNode &node)
virtual void flush(Bool global=True)
Write any pending output.
virtual String getLocation(uInt i) const
LogFilterInterface * filter_p
Accepts LogMessages and posts them to some destination.
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.
virtual const LogFilterInterface & filter() const
Get/set the filter.
virtual uInt nelements() const
Get number of messages in sink.
LogSinkInterface & operator=(const LogSinkInterface &)
virtual String getObjectID(uInt i) const
virtual String getMessage(uInt i) const
virtual Double getTime(uInt i) const
Get given part of the i-th message from the sink.
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 String getPriority(uInt i) const
Informational log messages with with time, priority, and origin.
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.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.
LogSinkInterface()
Create with a NORMAL filter.