MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ scribe_rt() [1/2]

template<typename... Args>
void MayaFlux::Journal::scribe_rt ( Severity  severity,
Component  component,
Context  context,
std::source_location  location,
const char *  msg_or_fmt,
Args &&...  args 
)

printf-style overload of scribe_rt().

Log a message in a real-time context with automatic source location.

Optimized for real-time usage and captures the source location automatically.

Parameters
severityThe severity level of the log message.
componentThe component generating the log message.
contextThe execution context of the log message.
locationSource location (file, line, function) of the log call.
messageThe log message content.
msg_or_fmtThe format string.
argsThe format arguments.

Definition at line 174 of file Archivist.hpp.

177{
178 if constexpr (sizeof...(Args) == 0) {
179 Archivist::instance().scribe_rt(severity, component, context,
180 std::string_view(msg_or_fmt), location);
181 } else {
182 auto msg = format_runtime(msg_or_fmt, std::forward<Args>(args)...);
183 Archivist::instance().scribe_rt(severity, component, context, msg, location);
184 }
185}

References format_runtime(), MayaFlux::Journal::Archivist::instance(), and MayaFlux::Journal::Archivist::scribe_rt().

+ Here is the call graph for this function: