HDK
|
#include <UT_UniversalLogFileLikeSink.h>
Public Types | |
using | LogEntryFormatCallback = UT_Function< void(const UT_UniversalLogEntry &, UT_StringHolder &message)> |
Public Types inherited from UT_UniversalLogSink | |
using | LogEntryFilterCallback = UT_Function< bool(const UT_UniversalLogEntry &)> |
Public Member Functions | |
UT_UniversalLogFileLikeSink (const UT_UniversalLogFileLikeSink &)=delete | |
UT_UniversalLogFileLikeSink () | |
void | setFormatEntryCallback (const LogEntryFormatCallback &callback) |
void | setMinSeverity (UT_ErrorSeverity severity) |
int | minSeverity () const |
Public Member Functions inherited from UT_UniversalLogSink | |
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... | |
Static Public Member Functions | |
static UT_StringHolder | severityToString (UT_ErrorSeverity sev) |
Protected Member Functions | |
void | doLog (const UT_UniversalLogEntry &entry) override |
virtual void | formatLogEntry (const UT_UniversalLogEntry &entry, UT_StringHolder &msg) const =0 |
virtual void | writeString (UT_ErrorSeverity severity, const UT_StringHolder &msg) const =0 |
Definition at line 24 of file UT_UniversalLogFileLikeSink.h.
using UT_UniversalLogFileLikeSink::LogEntryFormatCallback = UT_Function<void( const UT_UniversalLogEntry&, UT_StringHolder& message)> |
Definition at line 29 of file UT_UniversalLogFileLikeSink.h.
|
delete |
|
inline |
Definition at line 32 of file UT_UniversalLogFileLikeSink.h.
|
overrideprotectedvirtual |
Implements UT_UniversalLogSink.
|
protectedpure virtual |
Implemented in UT_UniversalLogConsoleSink, and UT_UniversalLogFileSink.
|
inline |
Definition at line 42 of file UT_UniversalLogFileLikeSink.h.
|
inline |
Definition at line 37 of file UT_UniversalLogFileLikeSink.h.
|
inline |
Definition at line 40 of file UT_UniversalLogFileLikeSink.h.
|
static |
|
protectedpure virtual |
Implemented in UT_UniversalLogConsoleSink, UT_UniversalLogFileSink, and UT_UniversalLogSystemSink.