HDK
|
#include <UT_ErrorLog.h>
Classes | |
class | ErrorCallback |
Functor to handle errors printed out using the mantra* methods. More... | |
Public Types | |
using | HeaderCallback = std::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 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 25 of file UT_ErrorLog.h.
using UT_ErrorLog::HeaderCallback = std::function<void(UT_WorkBuffer&)> |
Definition at line 31 of file UT_ErrorLog.h.
typedef int(* UT_ErrorLog::MantraColorCallback)() |
Definition at line 149 of file UT_ErrorLog.h.
typedef bool(* UT_ErrorLog::MantraTimestampCallback)() |
Definition at line 150 of file UT_ErrorLog.h.
typedef int(* UT_ErrorLog::MantraVerboseCallback)() |
Definition at line 148 of file UT_ErrorLog.h.
UT_ErrorLog::UT_ErrorLog | ( | ) |
UT_ErrorLog::~UT_ErrorLog | ( | ) |
|
inlinestatic |
Use UTformat to format messages
Definition at line 197 of file UT_ErrorLog.h.
|
inlinestatic |
Use UTformat to format messages
Definition at line 224 of file UT_ErrorLog.h.
|
inlinestatic |
Use UTformat to format messages
Definition at line 179 of file UT_ErrorLog.h.
|
inlinestatic |
Use UTformat to format messages
Definition at line 205 of file UT_ErrorLog.h.
|
inline |
Definition at line 119 of file UT_ErrorLog.h.
|
inline |
Definition at line 86 of file UT_ErrorLog.h.
|
inline |
Definition at line 99 of file UT_ErrorLog.h.
Definition at line 60 of file UT_ErrorLog.h.
|
inline |
Definition at line 92 of file UT_ErrorLog.h.
|
inline |
Definition at line 105 of file UT_ErrorLog.h.
|
static |
|
inline |
Definition at line 78 of file UT_ErrorLog.h.
|
inline |
Definition at line 70 of file UT_ErrorLog.h.
|
inline |
Definition at line 112 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 129 of file UT_ErrorLog.h.
|
inline |
Definition at line 123 of file UT_ErrorLog.h.
|
inline |
Definition at line 88 of file UT_ErrorLog.h.
|
inline |
Definition at line 101 of file UT_ErrorLog.h.
|
inline |
Definition at line 141 of file UT_ErrorLog.h.
Definition at line 62 of file UT_ErrorLog.h.
|
inline |
Definition at line 94 of file UT_ErrorLog.h.
|
inline |
Definition at line 107 of file UT_ErrorLog.h.
|
static |
|
static |
|
static |
|
static |
Definition at line 136 of file UT_ErrorLog.h.
Definition at line 80 of file UT_ErrorLog.h.
Definition at line 72 of file UT_ErrorLog.h.
|
inline |
Definition at line 114 of file UT_ErrorLog.h.
|
inlinestatic |
Use UTformat to format messages
Definition at line 188 of file UT_ErrorLog.h.
|
inlinestatic |
Use UTformat to format messages
Definition at line 215 of file UT_ErrorLog.h.