Home -> LogTargetCallback -> LogMessage
Description
The LogMessage method forwards the supplied message to the callback stored by the target.
Important
The public callback receives std::string values for the scope and message, plus the original severity.
Warning
The current implementation constructs the callback strings from the input pointers. This is safe for messages delivered through LogManager, which supplies null-terminated strings. Direct callers should also supply null-terminated strings.
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.