Antkeeper
0.0.1
|
Self-formatting message that logs itself to the default logger on construction. More...
#include <log.hpp>
Public Member Functions | |
log_message ([[maybe_unused]] std::string_view format, [[maybe_unused]] Args &&... args, [[maybe_unused]] std::source_location &&location=std::source_location::current()) | |
Formats and logs a message. More... | |
Self-formatting message that logs itself to the default logger on construction.
Severity | Message severity. A message will not log itself if Severity is less than the user-defined macro ANTKEEPER_DEBUG_LOG_MIN_MESSAGE_SEVERITY . |
Args | Types of arguments to be formatted. |
|
inline |
Formats and logs a message.
Class template argument deduction (CTAD) is utilized to capture source location as a default argument following variadic format arguments.
format | Message format string. |
args | Arguments to be formatted. |
location | Source location from which the message was sent. |