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

Simple object to hold the data associated with a single log entry event. More...

#include <UT_UniversalLogEntry.h>

Public Member Functions

 UT_UniversalLogEntry (const UT_StringHolder &source_name=UT_StringHolder::theEmptyString, const UT_StringHolder &message=UT_StringHolder::theEmptyString, const UT_StringHolder &source_context=UT_StringHolder::theEmptyString, UT_ErrorSeverity severity=UT_ERROR_NONE, int verbosity=0, const UT_SourceLocation &source_code_location=UT_SourceLocation(), UT_UniversalLogExternalInfoHandle external_info=UT_UniversalLogExternalInfoHandle())
bool operator< (const UT_UniversalLogEntry &other) const
 The natural order of log messages is chronological. More...
exint getMemoryUsage () const
SYS_HashType hash () const

Static Public Member Functions

static bool save (UT_JSONWriter &w, const UT_Array< UT_UniversalLogEntry > &log_entries)
static bool load (UT_JSONParser &p, UT_Array< UT_UniversalLogEntry > &log_entries)

Public Attributes

UT_StringHolder mySourceName
UT_StringHolder myMessage
UT_StringHolder mySourceContext
UT_SourceLocation mySourceCodeLocation
UT_ErrorSeverity myErrorSeverity
int myVerbosity
fpreal myTime
int myThreadId
UT_UniversalLogExternalInfoHandle myExternalInfo

Static Public Attributes

static fpreal theStartTime
static fpreal theStartTimeSinceEpoch

Detailed Description

Simple object to hold the data associated with a single log entry event.

Definition at line 57 of file UT_UniversalLogEntry.h.

Constructor & Destructor Documentation

UT_UniversalLogEntry::UT_UniversalLogEntry ( const UT_StringHolder source_name = UT_StringHolder::theEmptyString,
const UT_StringHolder message = UT_StringHolder::theEmptyString,
const UT_StringHolder source_context = UT_StringHolder::theEmptyString,
UT_ErrorSeverity  severity = UT_ERROR_NONE,
int  verbosity = 0,
const UT_SourceLocation source_code_location = UT_SourceLocation(),
UT_UniversalLogExternalInfoHandle  external_info = UT_UniversalLogExternalInfoHandle() 

Definition at line 60 of file UT_UniversalLogEntry.h.

Member Function Documentation

exint UT_UniversalLogEntry::getMemoryUsage ( ) const

Definition at line 86 of file UT_UniversalLogEntry.h.

SYS_HashType UT_UniversalLogEntry::hash ( void  ) const

Definition at line 95 of file UT_UniversalLogEntry.h.

static bool UT_UniversalLogEntry::load ( UT_JSONParser p,
UT_Array< UT_UniversalLogEntry > &  log_entries 
bool UT_UniversalLogEntry::operator< ( const UT_UniversalLogEntry other) const

The natural order of log messages is chronological.

Definition at line 81 of file UT_UniversalLogEntry.h.

static bool UT_UniversalLogEntry::save ( UT_JSONWriter w,
const UT_Array< UT_UniversalLogEntry > &  log_entries 

Member Data Documentation

UT_ErrorSeverity UT_UniversalLogEntry::myErrorSeverity

Definition at line 123 of file UT_UniversalLogEntry.h.

UT_UniversalLogExternalInfoHandle UT_UniversalLogEntry::myExternalInfo

Definition at line 127 of file UT_UniversalLogEntry.h.

UT_StringHolder UT_UniversalLogEntry::myMessage

Definition at line 120 of file UT_UniversalLogEntry.h.

UT_SourceLocation UT_UniversalLogEntry::mySourceCodeLocation

Definition at line 122 of file UT_UniversalLogEntry.h.

UT_StringHolder UT_UniversalLogEntry::mySourceContext

Definition at line 121 of file UT_UniversalLogEntry.h.

UT_StringHolder UT_UniversalLogEntry::mySourceName

Definition at line 119 of file UT_UniversalLogEntry.h.

int UT_UniversalLogEntry::myThreadId

Definition at line 126 of file UT_UniversalLogEntry.h.

fpreal UT_UniversalLogEntry::myTime

Definition at line 125 of file UT_UniversalLogEntry.h.

int UT_UniversalLogEntry::myVerbosity

Definition at line 124 of file UT_UniversalLogEntry.h.

fpreal UT_UniversalLogEntry::theStartTime

Definition at line 128 of file UT_UniversalLogEntry.h.

fpreal UT_UniversalLogEntry::theStartTimeSinceEpoch

Definition at line 129 of file UT_UniversalLogEntry.h.

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