MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Journal Namespace Reference

Namespaces

namespace  AnsiColors
 

Classes

class  Archivist
 Singleton class responsible for managing log entries. More...
 
class  ConsoleSink
 
class  FileSink
 
struct  JournalEntry
 A log entry structure to encapsulate log message details. More...
 
struct  RealtimeEntry
 Lightweight entry for lock-free ring buffer. More...
 
class  RingBuffer
 Lock-free SPSC (Single Producer Single Consumer) ring buffer. More...
 
class  Sink
 

Typedefs

template<typename... Args>
using format_string = fmt::format_string< Args... >
 

Enumerations

enum class  Severity : uint8_t {
  TRACE , DEBUG , INFO , WARN ,
  ERROR , FATAL , NONE
}
 
enum class  Component : uint8_t {
  API , Buffers , Core , Kakshya ,
  Kriya , Nodes , Vruta , Yantra ,
  IO , Registry , Portal , USER ,
  Unknown
}
 
enum class  Context : uint8_t {
  AudioCallback , GraphicsCallback , Realtime , AudioBackend ,
  GraphicsBackend , CustomBackend , GPUCompute , Rendering ,
  AudioSubsystem , WindowingSubsystem , GraphicsSubsystem , CustomSubsystem ,
  NodeProcessing , BufferProcessing , BufferManagement , CoroutineScheduling ,
  ContainerProcessing , ComputeMatrix , ImageProcessing , ShaderCompilation ,
  Worker , AsyncIO , FileIO , BackgroundCompile ,
  Init , Shutdown , Configuration , UI ,
  UserCode , Interactive , CrossSubsystem , ClockSync ,
  EventDispatch , Runtime , Testing , API ,
  Unknown
}
 Execution contexts for log messages. More...
 

Functions

void 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 scribe (Severity severity, Component component, Context context, std::source_location location, const char *msg_or_fmt, Args &&... args)
 printf-style overload of scribe().
 
void 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 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 print (Component component, Context context, std::string_view message)
 Log a simple message without source-location.
 
template<typename... Args>
void print (Component component, Context context, const char *msg_or_fmt, Args &&... args)
 printf-style overload of print().
 
void 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 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 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 error (Component component, Context context, std::source_location location, const char *fmt_str, Args &&... args)
 fmt-style overload of error().
 
void 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 error_rethrow (Component component, Context context, std::source_location location, const char *fmt_str, Args &&... args)
 fmt-style overload of error_rethrow().
 
template<typename... Args>
std::string format (format_string< std::remove_cvref_t< Args >... > fmt_str, Args &&... args)
 
template<typename... Args>
std::string format_runtime (std::string_view fmt_str, Args &&... args)
 
std::string vformat (std::string_view fmt_str, auto fmt_args)
 

Variables

static bool colors_enabled = AnsiColors::initialize_console_colors()