class Poco::WindowsConsoleChannel

Overview

A channel that writes to the Windows console. More…

#include <WindowsConsoleChannel.h>

class WindowsConsoleChannel: public Poco::Channel
{
public:
    // methods

    virtual
    void
    log(const Message& msg);
};

Inherited Members

public:
    // methods

    virtual
    void
    setProperty(
        const std::string& name,
        const std::string& value
        ) = 0;

    virtual
    std::string
    getProperty(const std::string& name) const = 0;

    void
    duplicate() const;

    void
    release() const;

    int
    referenceCount() const;

    virtual
    void
    open();

    virtual
    void
    close();

    virtual
    void
    log(const Message& msg) = 0;

    virtual
    void
    setProperty(
        const std::string& name,
        const std::string& value
        );

    virtual
    std::string
    getProperty(const std::string& name) const;

Detailed Documentation

A channel that writes to the Windows console.

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

If POCO has been compiled with POCO_WIN32_UTF8, log messages are assumed to be UTF-8 encoded, and are converted to UTF-16 prior to writing them to the console. This is the main difference to the ConsoleChannel class, which cannot handle UTF-8 encoded messages on Windows.

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

Only available on Windows platforms.

Methods

virtual
void
log(const Message& msg)

Logs the given message to the channel’s stream.