Throw away all messages. More...
#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. | |
Static Public Member Functions | |
| static String | localId () |
| Returns the id for this class. | |
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 74 of file NullLogSink.h.
| casacore::NullLogSink::NullLogSink | ( | ) |
| casacore::NullLogSink::NullLogSink | ( | LogMessage::Priority | filter | ) | [explicit] |
| casacore::NullLogSink::NullLogSink | ( | const LogFilterInterface & | filter | ) | [explicit] |
| casacore::NullLogSink::NullLogSink | ( | const NullLogSink & | other | ) |
| casacore::NullLogSink::~NullLogSink | ( | ) |
| String casacore::NullLogSink::id | ( | ) | const [virtual] |
| static String casacore::NullLogSink::localId | ( | ) | [static] |
| NullLogSink& casacore::NullLogSink::operator= | ( | const NullLogSink & | other | ) |
Reimplemented from casacore::LogSinkInterface.
| virtual Bool casacore::NullLogSink::postLocally | ( | const LogMessage & | message | ) | [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.
1.6.1