HDK
|
#include <UT_ErrorLog.h>
Classes | |
class | ErrorCallback |
Functor to handle errors printed out using the mantra* methods. More... | |
Public Types | |
using | HeaderCallback = UT_Function< void(UT_WorkBuffer &)> |
typedef int(* | MantraVerboseCallback )() |
typedef int(* | MantraColorCallback )() |
typedef bool(* | MantraTimestampCallback )() |
Public Member Functions | |
UT_ErrorLog () | |
~UT_ErrorLog () | |
void | logError (const UT_Error *) |
const UT_String & | getLogFileName () const |
void | setLogFileName (const UT_String &name) |
int | getMinLevel () const |
void | setMinLevel (const int level) |
int | getMinConsoleLevel () const |
void | setMinConsoleLevel (const int level) |
bool | getDoLogging () const |
void | setDoLogging (bool log) |
bool | getLogToConsole () const |
void | setLogToConsole (bool log) |
bool | getForceConsoleColor () const |
void | setForceConsoleColor (bool log) |
bool | getLogToSystem () const |
void | setLogToSystem (bool log) |
const UT_StringHolder & | getPrefix () const |
void | setPrefix (const UT_StringHolder &prefix) |
bool | getAppendDate () const |
void | setAppendDate (bool append_date) |
void | resetState () |
void | setMaxLogSize (int64 size) |
void | setHeaderCallback (HeaderCallback callback) |
Static Public Member Functions | |
static void | registerCallback (ErrorCallback *err) |
If you want to un-register the callback, just delete the object. More... | |
static const UT_StringHolder & | universalLogSourceName () |
Get the universal logging source name for this log source. More... | |
static void | setMantraVerboseLevel (int level) |
static int | getMantraVerboseLevel () |
static bool | isMantraVerbose (int level) |
static void | setMantraElapsedTime (bool enable) |
static bool | mantraElapsedTime () |
static void | setMantraVerboseCallback (MantraVerboseCallback cb) |
static void | setMantraColorCallback (MantraColorCallback cb) |
static void | setMantraTimestampCallback (MantraTimestampCallback cb) |
static int | mantraPrintf (int level, const char *msg,...) SYS_PRINTF_CHECK_ATTRIBUTE(2 |
static int static int | mantraWarning (const char *msg,...) SYS_PRINTF_CHECK_ATTRIBUTE(1 |
static int static int static int | mantraError (const char *msg,...) SYS_PRINTF_CHECK_ATTRIBUTE(1 |
static int | mantraPrintfOnce (int level, const char *msg,...) SYS_PRINTF_CHECK_ATTRIBUTE(2 |
static int static int | mantraWarningOnce (const char *msg,...) SYS_PRINTF_CHECK_ATTRIBUTE(1 |
static int static int static int | mantraErrorOnce (const char *msg,...) SYS_PRINTF_CHECK_ATTRIBUTE(1 |
static int static int static int static void | clearMantraOnceErrors () |
static void | printErrorToConsole (const char *msg, const char *prefix="", bool enable_color=false) |
static void | printWarningToConsole (const char *msg, const char *prefix="", bool enable_color=false) |
static void | printMessageToConsole (const char *msg, const char *prefix="", bool enable_color=false) |
template<typename... Args> | |
static int static int static int static size_t | format (int lev, const char *fmt, const Args &...args) |
template<typename... Args> | |
static size_t | warning (const char *fmt, const Args &...args) |
template<typename... Args> | |
static size_t | error (const char *fmt, const Args &...args) |
template<typename... Args> | |
static size_t | formatOnce (int lev, const char *fmt, const Args &...args) |
template<typename... Args> | |
static size_t | warningOnce (const char *fmt, const Args &...args) |
template<typename... Args> | |
static size_t | errorOnce (const char *fmt, const Args &...args) |
Definition at line 27 of file UT_ErrorLog.h.
using UT_ErrorLog::HeaderCallback = UT_Function<void(UT_WorkBuffer&)> |
Definition at line 33 of file UT_ErrorLog.h.
typedef int(* UT_ErrorLog::MantraColorCallback)() |
Definition at line 156 of file UT_ErrorLog.h.
typedef bool(* UT_ErrorLog::MantraTimestampCallback)() |
Definition at line 157 of file UT_ErrorLog.h.
typedef int(* UT_ErrorLog::MantraVerboseCallback)() |
Definition at line 155 of file UT_ErrorLog.h.
UT_ErrorLog::UT_ErrorLog | ( | ) |
UT_ErrorLog::~UT_ErrorLog | ( | ) |
|
inlinestatic |
Use UTformat to format messages
Definition at line 204 of file UT_ErrorLog.h.
|
inlinestatic |
Use UTformat to format messages
Definition at line 231 of file UT_ErrorLog.h.
|
inlinestatic |
Use UTformat to format messages
Definition at line 186 of file UT_ErrorLog.h.
|
inlinestatic |
Use UTformat to format messages
Definition at line 212 of file UT_ErrorLog.h.
|
inline |
Definition at line 126 of file UT_ErrorLog.h.
|
inline |
Definition at line 93 of file UT_ErrorLog.h.
|
inline |
Definition at line 106 of file UT_ErrorLog.h.
|
inline |
Definition at line 67 of file UT_ErrorLog.h.
|
inline |
Definition at line 99 of file UT_ErrorLog.h.
|
inline |
Definition at line 112 of file UT_ErrorLog.h.
|
static |
|
inline |
Definition at line 85 of file UT_ErrorLog.h.
|
inline |
Definition at line 77 of file UT_ErrorLog.h.
|
inline |
Definition at line 119 of file UT_ErrorLog.h.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
If you want to un-register the callback, just delete the object.
|
inline |
Definition at line 136 of file UT_ErrorLog.h.
|
inline |
Definition at line 130 of file UT_ErrorLog.h.
|
inline |
Definition at line 95 of file UT_ErrorLog.h.
|
inline |
Definition at line 108 of file UT_ErrorLog.h.
|
inline |
Definition at line 148 of file UT_ErrorLog.h.
Definition at line 69 of file UT_ErrorLog.h.
|
inline |
Definition at line 101 of file UT_ErrorLog.h.
|
inline |
Definition at line 114 of file UT_ErrorLog.h.
|
static |
|
static |
|
static |
|
static |
Definition at line 143 of file UT_ErrorLog.h.
Definition at line 87 of file UT_ErrorLog.h.
Definition at line 79 of file UT_ErrorLog.h.
|
inline |
Definition at line 121 of file UT_ErrorLog.h.
|
static |
Get the universal logging source name for this log source.
|
inlinestatic |
Use UTformat to format messages
Definition at line 195 of file UT_ErrorLog.h.
|
inlinestatic |
Use UTformat to format messages
Definition at line 222 of file UT_ErrorLog.h.