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

◆ store_journal_entries()

MAYAFLUX_API void MayaFlux::Config::store_journal_entries ( const std::string &  file_name)

Stores journal entries to a file by adding a FileSink to the Archivist.

Parameters
file_namePath to the log file

Definition at line 151 of file Config.cpp.

152{
153 Journal::Archivist::instance().add_sink(std::make_unique<Journal::FileSink>(file_name));
154 set_journal_severity(Journal::Severity::TRACE);
155}
void set_journal_severity(Journal::Severity severity)
Sets the minimum severity level for journal entries to be logged.
Definition Config.cpp:132

References MayaFlux::Journal::Archivist::add_sink(), MayaFlux::Journal::Archivist::instance(), set_journal_severity(), and MayaFlux::Journal::TRACE.

Referenced by load_config_from_file().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: