class Poco::EventChannel

Overview

The EventChannel fires the messageLogged event for every log message received. Moreā€¦

#include <EventChannel.h>

class EventChannel: public Poco::Channel
{
public:
    // fields

    Poco::BasicEvent<const Message> messageLogged;

    // 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

The EventChannel fires the messageLogged event for every log message received.

This can be used to hook custom log message processing into the logging framework.

Fields

Poco::BasicEvent<const Message> messageLogged

Fired when a message is logged by calling the log() method.

Construction

~EventChannel()

Destroys the EventChannel.

Methods

virtual
void
log(const Message& msg)

Fires the messageLogged event.