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

◆ print() [1/2]

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

printf-style overload of print().

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 212 of file Archivist.hpp.

214{
215 if constexpr (sizeof...(Args) == 0) {
216 Archivist::instance().scribe_simple(component, context,
217 std::string_view(msg_or_fmt));
218 } else {
219 auto msg = format_runtime(msg_or_fmt, std::forward<Args>(args)...);
220 Archivist::instance().scribe_simple(component, context, msg);
221 }
222}

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

+ Here is the call graph for this function: