12 #ifndef __UT_UniversalLogEntry__
13 #define __UT_UniversalLogEntry__
69 : mySourceName(source_name),
71 mySourceContext(source_context),
72 mySourceCodeLocation(source_code_location),
74 myVerbosity(verbosity),
75 myTime(
SYStime() - theStartTime + theStartTimeSinceEpoch),
77 myExternalInfo(external_info)
83 return myTime < other.
myTime;
88 return sizeof(*this) +
89 mySourceName.length() +
91 mySourceContext.length() +
92 mySourceCodeLocation.getMemoryUsage(
false);
98 SYShashCombine(h, myMessage.hash());
99 SYShashCombine(h, mySourceContext.hash());
100 SYShashCombine(h, mySourceCodeLocation.source().hash());
101 SYShashCombine(h, SYSwang_inthash(mySourceCodeLocation.line()));
102 SYShashCombine(h, SYSwang_inthash(mySourceCodeLocation.columnStart()));
103 SYShashCombine(h, SYSwang_inthash(mySourceCodeLocation.columnEnd()));
104 SYShashCombine(h, SYSwang_inthash(myErrorSeverity));
105 SYShashCombine(h, SYSwang_inthash(myVerbosity));
106 SYShashCombine(h, SYSreal_hash(myTime));
107 SYShashCombine(h, SYSwang_inthash(myThreadId));
109 SYShashCombine(h, myExternalInfo->hash());
GLuint GLsizei const GLchar * message
UT_StringHolder mySourceName
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())
SYS_HashType hash() const
SYS_HashType hash() const
std::size_t SYS_HashType
Define the type for hash values.
JSON reader class which handles parsing of JSON or bJSON files.
Class which writes ASCII or binary JSON streams.
A reference counter base class for use with UT_IntrusivePtr.
GLubyte GLubyte GLubyte GLubyte w
static const UT_StringHolder theEmptyString
UT_StringHolder myCommandLine
UT_StringHolder myIdentifier
UT_Array< UT_UniversalLogEntry > UT_UniversalLogEntryArray
UT_StringHolder mySourceContext
UT_UniversalLogExternalInfoHandle myExternalInfo
exint getMemoryUsage() const
UT_SourceLocation mySourceCodeLocation
UT_StringHolder myHostName
UT_StringHolder myMessage
GLfloat GLfloat GLfloat GLfloat h
static fpreal theStartTime
UT_IntrusivePtr< UT_UniversalLogExternalInfo > UT_UniversalLogExternalInfoHandle
UT_UniversalLogExternalInfo()
static fpreal theStartTimeSinceEpoch
bool operator<(const UT_UniversalLogEntry &other) const
The natural order of log messages is chronological.
Simple object to hold the data associated with a single log entry event.
UT_ErrorSeverity myErrorSeverity