Library: Foundation
Package: Logging
Header: Poco/NullChannel.h
The NullChannel is the /dev/null of Channels.
A NullChannel discards all information sent to it. Furthermore, its setProperty() method ignores all properties, so it the NullChannel has the nice feature that it can stand in for any other channel class in a logging configuration.
Direct Base Classes: Channel
All Base Classes: Channel, Configurable, RefCountedObject
Member Functions: log, setProperty
Inherited Functions: close, duplicate, getProperty, log, open, referenceCount, release, setProperty
NullChannel();
Creates the NullChannel.
~NullChannel();
Destroys the NullChannel.
void log(
const Message & msg
);
Does nothing.
See also: Poco::Channel::log()
void setProperty(
const std::string & name,
const std::string & value
);
Ignores both name and value.
See also: Poco::Channel::setProperty()