Home -> ILogger -> Error

Description

The Error method writes a error log message. It is a convenience wrapper around Log using Severity::Error.

Usage

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

Argument list

message [const std::string&]
The UTF-8 message string describing the recoverable error condition.
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