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

◆ fatal() [1/2]

template<typename... Args>
void MayaFlux::Journal::fatal ( Component  component,
Context  context,
std::source_location  location,
format_string< Args... >  fmt_str,
Args &&...  args 
)

fmt-style overload of fatal().

Log a fatal message and abort the program.

Parameters
componentThe component generating the log message.
contextThe execution context of the log message.
locationSource location (file, line, function) of the log call.
messageThe fatal message content.
Template Parameters
ArgsTypes of the format arguments.
Parameters
fmt_strThe format string.
argsThe format arguments.

Definition at line 249 of file Archivist.hpp.

251{
252 auto msg = format(fmt_str, std::forward<Args>(args)...);
253 Archivist::instance().scribe(Severity::FATAL, component, context, msg, location);
254 std::abort();
255}
std::string format(format_string< std::remove_cvref_t< Args >... > fmt_str, Args &&... args)
Definition Format.hpp:30

References FATAL, format(), MayaFlux::Journal::Archivist::instance(), and MayaFlux::Journal::Archivist::scribe().

+ Here is the call graph for this function: