ImFusion C++ SDK 4.5.0
ImFusion::QDebugAppender Class Reference
Inheritance diagram for ImFusion::QDebugAppender:

Public Member Functions

void flush () override
 Ensure that all log captures are fully committed/written.
Public Member Functions inherited from ImFusion::Log::Sink
void log (const LogCapture &capture)
 Logs the given message.
bool isAccepted (Level level, const char *category) noexcept
 Checks whether a log message of given level and category is accepted (i.e.
void addWhitelistFilter (Log::Level minLevel, const std::string &category)
 Adds a whitelist filter for this logger: both conditions of the filter must be met to accept a message.
void addBlacklistFilter (Log::Level maxLevel, const std::string &category)
 Adds a blacklist filter for this logger: both conditions of the filter must be met to reject a message.
const std::vector< Filter > & whitelistFilters () const
 Return the set of whitelist filters.
const std::vector< Filter > & blacklistFilters () const
 Return the set of blacklist filters.
void removeFilters (const std::string &category)
 Removes all filters matching category.
void clearFilters ()
 Clear all filters.
bool isEnabled () const
 Returns the flag whether this logger is enabled.
void setEnabled (bool value)
 Sets the flag whether this logger is enabled.
bool setDateTimeFormatFunction (const DateTimeFormatFunction &fcn)
 Set a callback function for formatting date and time.
std::string defaultDateTimeFormatFunction (const std::chrono::system_clock::time_point &time)
 Get a string representing date and time.

Protected Member Functions

void logImpl (const LogCapture &capture) override
 Performs the actual logging of the given message.

Additional Inherited Members

Public Types inherited from ImFusion::Log::Sink
using DateTimeFormatFunction = std::function<std::string(const std::chrono::system_clock::time_point& time)>
 Signature of the callback function used by Sink to format date and time.
Protected Attributes inherited from ImFusion::Log::Sink
DateTimeFormatFunction m_dateTimeFormatFunction

Member Function Documentation

◆ flush()

void ImFusion::QDebugAppender::flush ( )
overridevirtual

Ensure that all log captures are fully committed/written.

Implements ImFusion::Log::Sink.

◆ logImpl()

void ImFusion::QDebugAppender::logImpl ( const LogCapture & capture)
overrideprotectedvirtual

Performs the actual logging of the given message.

Called by log() after filtering.

Parameters
captureLog capture

Implements ImFusion::Log::Sink.


The documentation for this class was generated from the following file:
  • ImFusion/GUI/QDebugAppender.h
Search Tab / S to search, Esc to close