Description
The Critical method writes a critical log message. It is a convenience wrapper around Log using Severity::Critical.
Usage
void Critical(const std::string& message) const;
void Critical(const std::wstring& message) const;
template<class... Args>
void Critical(const std::string& formatString, Args&&... args) const;
template<class... Args>
void Critical(const std::wstring& formatString, Args&&... args) const;
Argument list
- message [const std::string&]
- The UTF-8 message string describing the unrecoverable error or crash 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.