MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Journal::Archivist Class Reference

Singleton class responsible for managing log entries. More...

#include <Archivist.hpp>

+ Collaboration diagram for MayaFlux::Journal::Archivist:

Classes

class  Impl
 

Public Member Functions

void add_sink (std::unique_ptr< Sink > sink)
 Add a log sink for output.
 
 Archivist (Archivist &&)=delete
 
 Archivist (const Archivist &)=delete
 
void clear_sinks ()
 Remove all sinks.
 
Archivistoperator= (Archivist &&)=delete
 
Archivistoperator= (const Archivist &)=delete
 
void scribe (Severity severity, Component component, Context context, std::string_view message, std::source_location location=std::source_location::current())
 Log a message with the specified severity, component, and context.
 
void scribe_rt (Severity severity, Component component, Context context, std::string_view message, std::source_location location=std::source_location::current())
 Log a message from a real-time context with the specified severity, component, and context.
 
void scribe_simple (Component component, Context context, std::string_view message)
 Log a simple message without source location information.
 
void set_component_filter (Component comp, bool enabled)
 Enable or disable logging for a specific component.
 
void set_min_severity (Severity min_sev)
 Set the minimum severity level for logging.
 

Static Public Member Functions

static Archivistinstance ()
 Get the singleton instance of the Archivist.
 
static void shutdown ()
 Shutdown the logging system.
 

Private Member Functions

 Archivist ()
 
 ~Archivist ()
 

Private Attributes

std::unique_ptr< Implm_impl
 

Detailed Description

Singleton class responsible for managing log entries.

The Archivist class provides methods to log messages with various severity levels, components, and contexts. It supports both standard and real-time logging.

Definition at line 17 of file Archivist.hpp.


The documentation for this class was generated from the following files: