HDK
|
#include <UT_UniversalLogSink.h>
Public Types | |
using | LogEntryFilterCallback = UT_Function< bool(const UT_UniversalLogEntry &)> |
Public Member Functions | |
UT_UniversalLogSink () | |
virtual | ~UT_UniversalLogSink () |
void | connect (const UT_StringHolder &source_name) |
void | disconnect (const UT_StringHolder &source_name) |
void | disconnectAll () |
void | getConnectedSourceNames (UT_StringArray &source_names) |
void | setFilterEntryCallback (const LogEntryFilterCallback &callback) |
void | log (const UT_UniversalLogEntry &entry) |
Record a message from a log source. More... | |
Protected Member Functions | |
virtual void | doLog (const UT_UniversalLogEntry &entry)=0 |
This class exists to amalgamate logging information from a variety of sources (UT_UniversalLogSource objects). Log entries can be fetched and filtered to present the user with just the logging they are interested in.
Definition at line 30 of file UT_UniversalLogSink.h.
using UT_UniversalLogSink::LogEntryFilterCallback = UT_Function<bool( const UT_UniversalLogEntry&)> |
Definition at line 34 of file UT_UniversalLogSink.h.
UT_UniversalLogSink::UT_UniversalLogSink | ( | ) |
|
virtual |
void UT_UniversalLogSink::connect | ( | const UT_StringHolder & | source_name | ) |
Each sink creates its own source objects, and can only have one source of any given type.
void UT_UniversalLogSink::disconnect | ( | const UT_StringHolder & | source_name | ) |
void UT_UniversalLogSink::disconnectAll | ( | ) |
|
protectedpure virtual |
Implemented in UT_UniversalLogInMemorySink, and UT_UniversalLogFileLikeSink.
void UT_UniversalLogSink::getConnectedSourceNames | ( | UT_StringArray & | source_names | ) |
void UT_UniversalLogSink::log | ( | const UT_UniversalLogEntry & | entry | ) |
Record a message from a log source.
|
inline |
Definition at line 46 of file UT_UniversalLogSink.h.