|
casacore
|
#include <NullLogSink.h>
Public Member Functions | |
| NullLogSink () | |
| NullLogSink (LogMessage::Priority filter) | |
| NullLogSink (const LogFilterInterface &filter) | |
| NullLogSink (const NullLogSink &other) | |
| NullLogSink & | operator= (const NullLogSink &other) |
| ~NullLogSink () | |
| virtual Bool | postLocally (const LogMessage &message) |
Always throws the message away, but it does return True or False depending on whether or not message passes the filter. | |
| String | id () const |
| Returns the id of the LogSink in use... | |
Public Member Functions inherited from casacore::LogSinkInterface | |
| LogSinkInterface () | |
Create with a NORMAL filter. | |
| LogSinkInterface (const LogFilterInterface &filter) | |
Create with the supplied filter. | |
| LogSinkInterface (const LogSinkInterface &other) | |
Copy semantics - copy the filter from other to this | |
| LogSinkInterface & | operator= (const LogSinkInterface &) |
| virtual | ~LogSinkInterface () |
| virtual const LogFilterInterface & | filter () const |
| Get/set the filter. | |
| virtual LogSinkInterface & | filter (const LogFilterInterface &filter) |
| virtual uInt | nelements () const |
| Get number of messages in sink. | |
| virtual Double | getTime (uInt i) const |
| Get given part of the i-th message from the sink. | |
| virtual String | getPriority (uInt i) const |
| virtual String | getMessage (uInt i) const |
| virtual String | getLocation (uInt i) const |
| virtual String | getObjectID (uInt i) const |
| virtual void | flush (Bool global=True) |
| Write any pending output. | |
| 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 void | clearLocally () |
| Clear the local sink (i.e. | |
| virtual void | cerrToo (bool cerr2) |
| Write to cerr too. | |
| void | setTaskName (const String &theTask) |
Static Public Member Functions | |
| static String | localId () |
| Returns the id for this class... | |
Static Public Member Functions inherited from casacore::LogSinkInterface | |
| static String | localId () |
| Returns the id for this class... | |
Additional Inherited Members | |
Protected Attributes inherited from casacore::LogSinkInterface | |
| String | taskName |
Throw away all messages.
Internal
Null as in "empty" or "/dev/null".
NullLogSink is a trivial LogSinkInterface which merely throws away all its messages. It is not intended to be used directly, rather it should be used through LogSink.
See (see (file="Logging.h"))Logging.h.
For testing, or to prevent multiply logging (local and global) to cerr (say).
Definition at line 71 of file NullLogSink.h.
| casacore::NullLogSink::NullLogSink | ( | ) |
|
explicit |
|
explicit |
| casacore::NullLogSink::NullLogSink | ( | const NullLogSink & | other | ) |
| casacore::NullLogSink::~NullLogSink | ( | ) |
|
virtual |
Returns the id of the LogSink in use...
Implements casacore::LogSinkInterface.
|
static |
Returns the id for this class...
| NullLogSink & casacore::NullLogSink::operator= | ( | const NullLogSink & | other | ) |
|
virtual |
Always throws the message away, but it does return True or False depending on whether or not message passes the filter.
Implements casacore::LogSinkInterface.