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

#include <NET_UniversalLogNetworkingSource.h>

Public Member Functions

 NET_LogManager ()
 
template<typename... Args>
void logMessage (const UT_StringHolder &source_name, const char *fmt, Args &&...args)
 
template<typename... Args>
void logPrompt (const UT_StringHolder &source_name, const char *fmt, Args &&...args)
 
template<typename... Args>
void logWarning (const UT_StringHolder &source_name, const char *fmt, Args &&...args)
 
template<typename... Args>
void logError (const UT_StringHolder &source_name, const char *fmt, Args &&...args)
 
template<typename... Args>
void logFatal (const UT_StringHolder &source_name, const char *fmt, Args &&...args)
 
void logEntry (const UT_UniversalLogEntry &entry)
 
const UT_UniversalLogEntryArraylogs () const
 
void clear ()
 
void setTrackLogs (bool track)
 
SYS_NO_DISCARD_RESULT bool isTrackingLogs () const
 
void generateMessage (UT_StringHolder &message, UT_ErrorSeverity sev=UT_ErrorSeverity::UT_ERROR_NONE)
 
SYS_NO_DISCARD_RESULT bool isEmpty () const
 

Detailed Description

Both logs and keeps track of logged entries. This is mostly useful if you need to keep track of all logged messages. As an example, HTTP api requests need to be logged but also collected so they can be sent back to the client.

Definition at line 26 of file NET_UniversalLogNetworkingSource.h.

Constructor & Destructor Documentation

NET_LogManager::NET_LogManager ( )
inline

Definition at line 29 of file NET_UniversalLogNetworkingSource.h.

Member Function Documentation

void NET_LogManager::clear ( )
inline

Definition at line 93 of file NET_UniversalLogNetworkingSource.h.

void NET_LogManager::generateMessage ( UT_StringHolder message,
UT_ErrorSeverity  sev = UT_ErrorSeverity::UT_ERROR_NONE 
)
SYS_NO_DISCARD_RESULT bool NET_LogManager::isEmpty ( ) const
inline

Definition at line 102 of file NET_UniversalLogNetworkingSource.h.

SYS_NO_DISCARD_RESULT bool NET_LogManager::isTrackingLogs ( ) const
inline

Definition at line 96 of file NET_UniversalLogNetworkingSource.h.

void NET_LogManager::logEntry ( const UT_UniversalLogEntry entry)
inline

Definition at line 83 of file NET_UniversalLogNetworkingSource.h.

template<typename... Args>
void NET_LogManager::logError ( const UT_StringHolder source_name,
const char *  fmt,
Args &&...  args 
)
inline

Definition at line 64 of file NET_UniversalLogNetworkingSource.h.

template<typename... Args>
void NET_LogManager::logFatal ( const UT_StringHolder source_name,
const char *  fmt,
Args &&...  args 
)
inline

Definition at line 74 of file NET_UniversalLogNetworkingSource.h.

template<typename... Args>
void NET_LogManager::logMessage ( const UT_StringHolder source_name,
const char *  fmt,
Args &&...  args 
)
inline

Definition at line 34 of file NET_UniversalLogNetworkingSource.h.

template<typename... Args>
void NET_LogManager::logPrompt ( const UT_StringHolder source_name,
const char *  fmt,
Args &&...  args 
)
inline

Definition at line 44 of file NET_UniversalLogNetworkingSource.h.

const UT_UniversalLogEntryArray& NET_LogManager::logs ( ) const
inline

Definition at line 92 of file NET_UniversalLogNetworkingSource.h.

template<typename... Args>
void NET_LogManager::logWarning ( const UT_StringHolder source_name,
const char *  fmt,
Args &&...  args 
)
inline

Definition at line 54 of file NET_UniversalLogNetworkingSource.h.

void NET_LogManager::setTrackLogs ( bool  track)
inline

Definition at line 95 of file NET_UniversalLogNetworkingSource.h.


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