Skip to content
Download

warning

mach::Logger::warning

Logs a warning message.

Logs a message at the warning level.

template <typename... Args>
void warning(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.warning("Connection limit nearly reached: {}", connectionCount);
Name Description
debug Logs a debug message.
info Logs an informational message.
error Logs an error message.