Go to the documentation of this file.
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 String getMessage(uInt i) const
void setTaskName(const String &theTask)
virtual String getPriority(uInt i) const
virtual void clearLocally()
Clear the local sink (i.e.
virtual String id() const =0
Returns the id of the LogSink in use...
virtual ~LogSinkInterface()
LogSinkInterface()
Create with a NORMAL filter.
Abstract base class for filtering LogMessages.
LogFilterInterface * filter_p
virtual String getObjectID(uInt i) const
virtual uInt nelements() const
Get number of messages in sink.
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.
virtual Bool postLocally(const LogMessage &message)=0
This function must be over-ridden in derived classes.
this file contains all the compiler specific defines
virtual String getLocation(uInt i) const
TableExprNode time(const TableExprNode &node)
virtual void cerrToo(bool cerr2)
Write to cerr too.
LogSinkInterface & operator=(const LogSinkInterface &)
Accepts LogMessages and posts them to some destination.
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
virtual const LogFilterInterface & filter() const
Get/set the filter.
static String localId()
Returns the id for this class...
virtual void flush(Bool global=True)
Write any pending output.
virtual Double getTime(uInt i) const
Get given part of the i-th message from the sink.