Poco

class EventChannel

File Information

Library: Foundation
Package: Logging
Header: Poco/EventChannel.h

Description

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.

Inheritance

Direct Base Classes: Channel

All Base Classes: Channel, Configurable, RefCountedObject

Member Summary

Member Functions: log

Inherited Functions: close, duplicate, getProperty, log, open, referenceCount, release, setProperty

Types Aliases

Ptr

using Ptr = AutoPtr < EventChannel >;

Constructors

EventChannel

EventChannel();

Creates the EventChannel.

Destructor

~EventChannel protected virtual

~EventChannel();

Destroys the EventChannel.

Member Functions

log virtual

void log(
    const Message & msg
);

Fires the messageLogged event.

Variables

messageLogged

Poco::BasicEvent < const Message > messageLogged;

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

Securely control IoT edge devices from anywhere   Connect a Device