Skip to content
Download

error

mach::Logger::error

Logs an error message.

Logs a message at the error level.

template <typename... Args>
void error(fmt::format_string<Args...> format, Args&&... args) const;
Parameter Description
Args The types of the format arguments.
Parameter Description
format The format string for the log message.
args The arguments used to format the message.

This method is thread-safe and may be called from multiple threads.

logger.error("Failed to process request: {}", errorMessage);
Name Description
debug Logs a debug message.
info Logs an informational message.
warning Logs a warning message.