Home -> ILogTarget -> LogMessage
Description
The LogMessage method receives a log message that has passed the active severity filters and should be delivered by the target.
Important
Custom targets should use the supplied length values when copying or writing the scope and message strings.
Usage
virtual void LogMessage(const char* scope, size_t scopeLength, ILogger::Severity severity, const char* message, size_t messageLength) = 0;
Argument list
- scope [const char*]
- A pointer to the UTF-8 scope string for the logger that emitted the message.
- scopeLength [size_t]
- The number of bytes in the scope string. This value may be zero.
- 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.