HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_UniversalLogConsoleSink Class Reference

#include <UT_UniversalLogConsoleSink.h>

+ Inheritance diagram for UT_UniversalLogConsoleSink:

Public Types

enum  OutFlags {
  kNONE = 0x0, kFILE = 0x1, kLINE = 0x2, kFILELINE = kFILE | kLINE,
  kTHREAD = 0x4, kDATE = 0x8
}
 
- Public Types inherited from UT_UniversalLogFileLikeSink
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_UniversalLogConsoleSink (const UT_UniversalLogConsoleSink &)=delete
 
 UT_UniversalLogConsoleSink ()
 
 UT_UniversalLogConsoleSink (const UT_StringArray &whitelist, const UT_StringArray &blacklist)
 
 ~UT_UniversalLogConsoleSink () override
 
void setEnableColor (bool enable)
 
bool enableColor () const
 
- Public Member Functions inherited from UT_UniversalLogFileLikeSink
 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...
 

Protected Member Functions

void formatLogEntry (const UT_UniversalLogEntry &entry, UT_StringHolder &msg) const override
 
void writeString (UT_ErrorSeverity severity, const UT_StringHolder &msg) const override
 
- Protected Member Functions inherited from UT_UniversalLogFileLikeSink
void doLog (const UT_UniversalLogEntry &entry) override
 

Additional Inherited Members

- Static Public Member Functions inherited from UT_UniversalLogFileLikeSink
static UT_StringHolder severityToString (UT_ErrorSeverity sev)
 

Detailed Description

Definition at line 23 of file UT_UniversalLogConsoleSink.h.

Member Enumeration Documentation

Enumerator
kNONE 
kFILE 
kLINE 
kFILELINE 
kTHREAD 
kDATE 

Definition at line 26 of file UT_UniversalLogConsoleSink.h.

Constructor & Destructor Documentation

UT_UniversalLogConsoleSink::UT_UniversalLogConsoleSink ( const UT_UniversalLogConsoleSink )
delete
UT_UniversalLogConsoleSink::UT_UniversalLogConsoleSink ( )
inline

Definition at line 37 of file UT_UniversalLogConsoleSink.h.

UT_UniversalLogConsoleSink::UT_UniversalLogConsoleSink ( const UT_StringArray whitelist,
const UT_StringArray blacklist 
)
inline

Definition at line 43 of file UT_UniversalLogConsoleSink.h.

UT_UniversalLogConsoleSink::~UT_UniversalLogConsoleSink ( )
inlineoverride

Definition at line 51 of file UT_UniversalLogConsoleSink.h.

Member Function Documentation

bool UT_UniversalLogConsoleSink::enableColor ( ) const
inline

Definition at line 60 of file UT_UniversalLogConsoleSink.h.

void UT_UniversalLogConsoleSink::formatLogEntry ( const UT_UniversalLogEntry entry,
UT_StringHolder msg 
) const
overrideprotectedvirtual
void UT_UniversalLogConsoleSink::setEnableColor ( bool  enable)
inline

Definition at line 58 of file UT_UniversalLogConsoleSink.h.

void UT_UniversalLogConsoleSink::writeString ( UT_ErrorSeverity  severity,
const UT_StringHolder msg 
) const
overrideprotectedvirtual

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