Home -> LogTargetCallback -> Constructor

Description

The LogTargetCallback constructor creates a target that invokes the supplied callback for each received message.

WarningWarning

Supplying an empty callback can cause logging to fail when the target attempts to invoke it.

Usage

LogTargetCallback(std::function<void(const std::string&, ILogger::Severity, const std::string&)> callback);

Argument list

callback [std::function]
The callback to invoke with the message scope, severity, and text.

See also