MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
Archivist.hpp File Reference
#include "Format.hpp"
#include "JournalEntry.hpp"
+ Include dependency graph for Archivist.hpp:

Go to the source code of this file.

Classes

class  MayaFlux::Journal::Archivist
 Singleton class responsible for managing log entries. More...
 

Namespaces

namespace  MayaFlux
 Main namespace for the Maya Flux audio engine.
 
namespace  MayaFlux::Journal
 

Macros

#define MF_TRACE(comp, ctx, ...)
 
#define MF_DEBUG(comp, ctx, ...)
 
#define MF_INFO(comp, ctx, ...)
 
#define MF_WARN(comp, ctx, ...)
 
#define MF_ERROR(comp, ctx, ...)
 
#define MF_RT_TRACE(comp, ctx, ...)
 
#define MF_RT_WARN(comp, ctx, ...)
 
#define MF_RT_ERROR(comp, ctx, ...)
 
#define MF_RT_DEBUG(comp, ctx, ...)
 
#define MF_PRINT(comp, ctx, ...)   MayaFlux::Journal::print(comp, ctx, __VA_ARGS__)
 

Functions

void MayaFlux::Journal::scribe (Severity severity, Component component, Context context, std::source_location location, std::string_view message)
 Log a message with the specified severity, component, and context.
 
template<typename... Args>
void MayaFlux::Journal::scribe (Severity severity, Component component, Context context, std::source_location location, const char *msg_or_fmt, Args &&... args)
 printf-style overload of scribe().
 
void MayaFlux::Journal::scribe_rt (Severity severity, Component component, Context context, std::source_location location, std::string_view message)
 Log a message in a real-time context with automatic source location.
 
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().
 
void MayaFlux::Journal::print (Component component, Context context, std::string_view message)
 Log a simple message without source-location.
 
template<typename... Args>
void MayaFlux::Journal::print (Component component, Context context, const char *msg_or_fmt, Args &&... args)
 printf-style overload of print().
 
void MayaFlux::Journal::fatal (Component component, Context context, std::source_location location, std::string_view message)
 Log a fatal message and abort the program.
 
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().
 
template<typename ExceptionType = std::runtime_error>
void MayaFlux::Journal::error (Component component, Context context, std::source_location location, std::string_view message)
 Log an error message and optionally throw an exception.
 
template<typename ExceptionType = std::runtime_error, typename... Args>
void MayaFlux::Journal::error (Component component, Context context, std::source_location location, const char *fmt_str, Args &&... args)
 fmt-style overload of error().
 
void MayaFlux::Journal::error_rethrow (Component component, Context context, std::source_location location=std::source_location::current(), std::string_view additional_context="")
 Catch and log an exception, then rethrow it.
 
template<typename... Args>
void MayaFlux::Journal::error_rethrow (Component component, Context context, std::source_location location, const char *fmt_str, Args &&... args)
 fmt-style overload of error_rethrow().