Home -> LogTargetConsole -> LogMessage

Description

The LogMessage method writes a message to the attached Windows console, applying a severity-specific text colour while the message is written.

ImportantImportant

If no console handle is open, the method returns without writing output.

Usage

void LogMessage(const char* scope, size_t scopeLength, ILogger::Severity severity, const char* message, size_t messageLength) override;

Argument list

scope [const char*]
A pointer to the UTF-8 scope string.
scopeLength [size_t]
The number of bytes in the scope string.
severity [Severity]
The severity assigned to the message.
message [const char*]
A pointer to the UTF-8 message string.
messageLength [size_t]
The number of bytes in the message string.

See also