XLL+ Class Library (7.0)

::LOG_ERROR

Write an error report to the log

LOG_ERROR(
   LoggerPtr logger,
   EXPRESSION expression
);

Parameters

logger

A pointer to a logger, which will have been retrieved using Logger::getLogger().

expression

An expression that it is to be written to the log. Any expression can be used that works as the right-hand-side of os << expression where os is of type std::ostream (or std::wostream under Unicode builds).

It can be a simple string, a number, or any object that supports the output stream operator. The expression may include any number of items, each separated by a << operator.

Remarks

For examples of use, see Using the logging macros.

Requirements

Header: cpplog.h

See Also

Logging macros | Logging