|
| static void | SetThreadLocalLogSystem (xiiLogInterface *pInterface) |
|
static xiiLogInterface * | GetThreadLocalLogSystem () |
| | Returns the currently set default logging system, or a thread local instance of xiiGlobalLog, if nothing else was set.
|
|
static void | SetDefaultLogLevel (xiiLogMsgType::Enum logLevel) |
| | Sets the default log level which is used by all xiiLogInterface's that have their log level set to xiiLogMsgType::GlobalDefault.
|
|
static xiiLogMsgType::Enum | GetDefaultLogLevel () |
| | Returns the currently set default log level.
|
|
static void | Error (xiiLogInterface *pInterface, const xiiFormatString &string) |
| | An error that needs to be fixed as soon as possible.
|
|
template<typename... ARGS> |
| static void | Error (xiiStringView sFormat, ARGS &&... args) |
| | An error that needs to be fixed as soon as possible.
|
|
template<typename... ARGS> |
| static void | Error (xiiLogInterface *pInterface, xiiStringView sFormat, ARGS &&... args) |
| | Overload of Error() to output messages to a specific log.
|
|
static void | SeriousWarning (xiiLogInterface *pInterface, const xiiFormatString &string) |
| | Not an error, but definitely a big problem, that should be looked into very soon.
|
|
template<typename... ARGS> |
| static void | SeriousWarning (xiiStringView sFormat, ARGS &&... args) |
| | Not an error, but definitely a big problem, that should be looked into very soon.
|
|
template<typename... ARGS> |
| static void | SeriousWarning (xiiLogInterface *pInterface, xiiStringView sFormat, ARGS &&... args) |
| | Overload of SeriousWarning() to output messages to a specific log.
|
|
static void | Warning (xiiLogInterface *pInterface, const xiiFormatString &string) |
| | A potential problem or a performance warning. Might be possible to ignore it.
|
|
template<typename... ARGS> |
| static void | Warning (xiiStringView sFormat, ARGS &&... args) |
| | A potential problem or a performance warning. Might be possible to ignore it.
|
|
template<typename... ARGS> |
| static void | Warning (xiiLogInterface *pInterface, xiiStringView sFormat, ARGS &&... args) |
| | Overload of Warning() to output messages to a specific log.
|
|
static void | Success (xiiLogInterface *pInterface, const xiiFormatString &string) |
| | Status information that something was completed successfully.
|
|
template<typename... ARGS> |
| static void | Success (xiiStringView sFormat, ARGS &&... args) |
| | Status information that something was completed successfully.
|
|
template<typename... ARGS> |
| static void | Success (xiiLogInterface *pInterface, xiiStringView sFormat, ARGS &&... args) |
| | Overload of Success() to output messages to a specific log.
|
|
static void | Info (xiiLogInterface *pInterface, const xiiFormatString &string) |
| | Status information that is important.
|
|
template<typename... ARGS> |
| static void | Info (xiiStringView sFormat, ARGS &&... args) |
| | Status information that is important.
|
|
template<typename... ARGS> |
| static void | Info (xiiLogInterface *pInterface, xiiStringView sFormat, ARGS &&... args) |
| | Overload of Info() to output messages to a specific log.
|
| static void | Dev (xiiLogInterface *pInterface, const xiiFormatString &string) |
| template<typename... ARGS> |
| static void | Dev (xiiStringView sFormat, ARGS &&... args) |
|
template<typename... ARGS> |
| static void | Dev (xiiLogInterface *pInterface, xiiStringView sFormat, ARGS &&... args) |
| | Overload of Dev() to output messages to a specific log.
|
| static void | Debug (xiiLogInterface *pInterface, const xiiFormatString &string) |
| template<typename... ARGS> |
| static void | Debug (xiiStringView sFormat, ARGS &&... args) |
|
template<typename... ARGS> |
| static void | Debug (xiiLogInterface *pInterface, xiiStringView sFormat, ARGS &&... args) |
| | Overload of Debug() to output messages to a specific log.
|
| static bool | Flush (xiiUInt32 uiNumNewMsgThreshold=0, xiiTime timeIntervalThreshold=xiiTime::MakeFromSeconds(10), xiiLogInterface *pInterface=GetThreadLocalLogSystem()) |
| static void | BroadcastLoggingEvent (xiiLogInterface *pInterface, xiiLogMsgType::Enum type, xiiStringView sString) |
| static void | Print (const char *szText) |
| static void | Printf (const char *szFormat,...) |
|
static void | SetCustomPrintFunction (PrintFunction func) |
| | Sets a custom function that is called in addition to the default behavior of xiiLog::Print.
|
| static void | OsMessageBox (const xiiFormatString &text) |
|
static void | GenerateFormattedTimestamp (TimestampMode mode, xiiStringBuilder &ref_sTimestampOut) |
Static class that allows to write out logging information.
This class takes logging information, prepares it and then broadcasts it to all interested code via the event interface. It does not write anything on disk or somewhere else, itself. Instead it allows to register custom log writers that can then write it to disk, to console, send it over a network or pop up a message box. Whatever suits the current situation. Since event handlers can be registered only temporarily, it is also possible to just gather all errors that occur during some operation and then unregister the event handler again.