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

#include <UT_UniversalLogFileSink.h>

+ Inheritance diagram for UT_UniversalLogFileSink:

Public Member Functions

 UT_UniversalLogFileSink (const UT_UniversalLogFileSink &)=delete
 
 UT_UniversalLogFileSink (const UT_StringHolder &filepath)
 
 ~UT_UniversalLogFileSink () override
 
const UT_StringHolderfilePath () const
 
void setMaxFileSize (exint max_size)
 
exint maxFileSize () const
 
void setAppendDate (bool adate)
 
bool appendDate () const
 
void setPermissions (unsigned int perms)
 
unsigned int permissions () 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

- 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 &)>
 
- Static Public Member Functions inherited from UT_UniversalLogFileLikeSink
static UT_StringHolder severityToString (UT_ErrorSeverity sev)
 

Detailed Description

Definition at line 22 of file UT_UniversalLogFileSink.h.

Constructor & Destructor Documentation

UT_UniversalLogFileSink::UT_UniversalLogFileSink ( const UT_UniversalLogFileSink )
delete
UT_UniversalLogFileSink::UT_UniversalLogFileSink ( const UT_StringHolder filepath)
inline

Definition at line 26 of file UT_UniversalLogFileSink.h.

UT_UniversalLogFileSink::~UT_UniversalLogFileSink ( )
inlineoverride

Definition at line 30 of file UT_UniversalLogFileSink.h.

Member Function Documentation

bool UT_UniversalLogFileSink::appendDate ( ) const
inline

Definition at line 44 of file UT_UniversalLogFileSink.h.

const UT_StringHolder& UT_UniversalLogFileSink::filePath ( ) const
inline

Definition at line 37 of file UT_UniversalLogFileSink.h.

void UT_UniversalLogFileSink::formatLogEntry ( const UT_UniversalLogEntry entry,
UT_StringHolder msg 
) const
overrideprotectedvirtual
exint UT_UniversalLogFileSink::maxFileSize ( ) const
inline

Definition at line 41 of file UT_UniversalLogFileSink.h.

unsigned int UT_UniversalLogFileSink::permissions ( ) const
inline

Definition at line 47 of file UT_UniversalLogFileSink.h.

void UT_UniversalLogFileSink::setAppendDate ( bool  adate)
inline

Definition at line 43 of file UT_UniversalLogFileSink.h.

void UT_UniversalLogFileSink::setMaxFileSize ( exint  max_size)
inline

Definition at line 40 of file UT_UniversalLogFileSink.h.

void UT_UniversalLogFileSink::setPermissions ( unsigned int  perms)
inline

Definition at line 46 of file UT_UniversalLogFileSink.h.

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

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