Home -> ILogger -> Log

Description

The Log method writes a message using the severity supplied by the caller.

ImportantImportant

The formatting overloads check whether the severity is enabled before resolving the argument list.

Usage

void Log(Severity severity, const std::string& message) const;
void Log(Severity severity, const std::wstring& message) const;
template<class... Args>
void Log(Severity severity, const std::string& formatString, Args&&... args) const;
template<class... Args>
void Log(Severity severity, const std::wstring& formatString, Args&&... args) const;

Argument list

severity [Severity]
The severity assigned to the message.
message [const std::string&]
The UTF-8 message string to log.
message [const std::wstring&]
The native wide string message to convert to UTF-8 and log.
formatString [const std::string&]
The UTF-8 format string containing positional placeholders such as {0}.
formatString [const std::wstring&]
The native wide string format string to convert to UTF-8 before resolving placeholders.
args [Args&&...]
The values used to replace positional placeholders in the format string.

See also