Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::utils::Logger Class Reference
Inheritance diagram for zrythm::utils::Logger:
Collaboration diagram for zrythm::utils::Logger:

Public Types

enum class  LoggerType { GUI , Engine }

Public Member Functions

 Logger (LoggerType type)
std::pair< fs::path, fs::path > generate_compresed_file (fs::path &dir, fs::path &path) const override
 Generates a compressed log file (for sending with bug reports).
bool need_backtrace () const override
fs::path get_log_file_path () const override
Public Member Functions inherited from zrythm::utils::ILogger
void init_sinks (bool for_testing)
std::vector< Utf8Stringget_last_log_entries (size_t count, bool formatted) const
const std::shared_ptr< spdlog::logger > & get_logger () const

Additional Inherited Members

Protected Attributes inherited from zrythm::utils::ILogger
std::shared_ptr< spdlog::logger > logger_
double last_bt_time_ = 0
 Last timestamp a backtrace was obtained.

Detailed Description

Definition at line 65 of file logger.h.

Member Enumeration Documentation

◆ LoggerType

enum class zrythm::utils::Logger::LoggerType
strong

Definition at line 68 of file logger.h.

Member Function Documentation

◆ generate_compresed_file()

std::pair< fs::path, fs::path > zrythm::utils::Logger::generate_compresed_file ( fs::path & dir,
fs::path & path ) const
overridevirtual

Generates a compressed log file (for sending with bug reports).

Returns
The directory and the path of the compressed file.
Exceptions
ZrythmExceptionon failure.

Implements zrythm::utils::ILogger.

◆ get_log_file_path()

fs::path zrythm::utils::Logger::get_log_file_path ( ) const
nodiscardoverridevirtual

◆ need_backtrace()

bool zrythm::utils::Logger::need_backtrace ( ) const
overridevirtual

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