Skip to content
Download

info

mach::Logger::info

Logs an informational message.

Logs a message at the informational level.

template <typename... Args>
void info(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.info("Server listening on port {}", port);
Name Description
debug Logs a debug message.
warning Logs a warning message.
error Logs an error message.