Home -> LogTargetFile -> LogMessage

Description

The LogMessage method writes a formatted line to the open log file.

ImportantImportant

If no file is open, the method returns without writing output. Written lines include the severity name, the optional scope, and the message text.

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