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

◆ log() [1/2]

template<typename... Args>
void MayaFlux::Journal::log ( Component  component,
Context  context,
const char *  msg_or_fmt,
Args &&...  args 
)

printf-style overload of log().

Log a simple message without source-location.

Intended for contexts where source location is unavailable or unnecessary. It is not effected by severity filters, so use sparingly.

Parameters
componentThe component generating the log message.
contextThe execution context of the log message.
messageThe log message content.
msg_or_fmtThe format string.
argsThe format arguments.

Definition at line 219 of file Archivist.hpp.

221{
222 if constexpr (sizeof...(Args) == 0) {
223 Archivist::instance().scribe_simple(component, context,
224 std::string_view(msg_or_fmt));
225 } else {
226 auto msg = format_runtime(msg_or_fmt, std::forward<Args>(args)...);
227 Archivist::instance().scribe_simple(component, context, msg);
228 }
229}

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

+ Here is the call graph for this function: