Logo Search packages:      
Sourcecode: poco version File versions  Download package

Poco::ConsoleChannel Class Reference

#include <ConsoleChannel.h>

Inheritance diagram for Poco::ConsoleChannel:

Poco::Channel Poco::Configurable Poco::RefCountedObject

List of all members.

Detailed Description

A channel that writes to an ostream.

Only the message's text is written, followed by a newline.

Chain this channel to a FormattingChannel with an appropriate Formatter to control what is contained in the text.

Similar to StreamChannel, except that a static mutex is used to protect against multiple console channels concurrently writing to the same stream.

Definition at line 52 of file ConsoleChannel.h.

Public Member Functions

virtual void close ()
 ConsoleChannel (std::ostream &str)
 Creates the channel and attached std::clog.
void duplicate () const
std::string getProperty (const std::string &name) const
 Throws a PropertyNotSupportedException.
void log (const Message &msg)
 Creates the channel.
virtual void open ()
int referenceCount () const
void release () const
 Increments the object's reference count.
void setProperty (const std::string &name, const std::string &value)

Protected Member Functions

 ~ConsoleChannel ()
 Logs the given message to the channel's stream.

Private Attributes

std::ostream & _str

Static Private Attributes

static FastMutex _mutex

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index