|
static void | SetThreadLocalLogSystem (plLogInterface *pInterface) |
| Allows to change which logging system is used by default on the current thread. If nothing is set, plGlobalLog is used.
|
|
static plLogInterface * | GetThreadLocalLogSystem () |
| Returns the currently set default logging system, or a thread local instance of plGlobalLog, if nothing else was set.
|
|
static void | SetDefaultLogLevel (plLogMsgType::Enum logLevel) |
| Sets the default log level which is used by all plLogInterface's that have their log level set to plLogMsgType::GlobalDefault.
|
|
static plLogMsgType::Enum | GetDefaultLogLevel () |
| Returns the currently set default log level.
|
|
static void | Error (plLogInterface *pInterface, const plFormatString &string) |
| An error that needs to be fixed as soon as possible.
|
|
template<typename... ARGS> |
static void | Error (plStringView sFormat, ARGS &&... args) |
| An error that needs to be fixed as soon as possible.
|
|
template<typename... ARGS> |
static void | Error (plLogInterface *pInterface, plStringView sFormat, ARGS &&... args) |
| Overload of Error() to output messages to a specific log.
|
|
static void | SeriousWarning (plLogInterface *pInterface, const plFormatString &string) |
| Not an error, but definitely a big problem, that should be looked into very soon.
|
|
template<typename... ARGS> |
static void | SeriousWarning (plStringView sFormat, ARGS &&... args) |
| Not an error, but definitely a big problem, that should be looked into very soon.
|
|
template<typename... ARGS> |
static void | SeriousWarning (plLogInterface *pInterface, plStringView sFormat, ARGS &&... args) |
| Overload of SeriousWarning() to output messages to a specific log.
|
|
static void | Warning (plLogInterface *pInterface, const plFormatString &string) |
| A potential problem or a performance warning. Might be possible to ignore it.
|
|
template<typename... ARGS> |
static void | Warning (plStringView sFormat, ARGS &&... args) |
| A potential problem or a performance warning. Might be possible to ignore it.
|
|
template<typename... ARGS> |
static void | Warning (plLogInterface *pInterface, plStringView sFormat, ARGS &&... args) |
| Overload of Warning() to output messages to a specific log.
|
|
static void | Success (plLogInterface *pInterface, const plFormatString &string) |
| Status information that something was completed successfully.
|
|
template<typename... ARGS> |
static void | Success (plStringView sFormat, ARGS &&... args) |
| Status information that something was completed successfully.
|
|
template<typename... ARGS> |
static void | Success (plLogInterface *pInterface, plStringView sFormat, ARGS &&... args) |
| Overload of Success() to output messages to a specific log.
|
|
static void | Info (plLogInterface *pInterface, const plFormatString &string) |
| Status information that is important.
|
|
template<typename... ARGS> |
static void | Info (plStringView sFormat, ARGS &&... args) |
| Status information that is important.
|
|
template<typename... ARGS> |
static void | Info (plLogInterface *pInterface, plStringView sFormat, ARGS &&... args) |
| Overload of Info() to output messages to a specific log.
|
|
static void | Dev (plLogInterface *pInterface, const plFormatString &string) |
| Status information that is nice to have during development.
|
|
template<typename... ARGS> |
static void | Dev (plStringView sFormat, ARGS &&... args) |
| Status information that is nice to have during development.
|
|
template<typename... ARGS> |
static void | Dev (plLogInterface *pInterface, plStringView sFormat, ARGS &&... args) |
| Overload of Dev() to output messages to a specific log.
|
|
static void | Debug (plLogInterface *pInterface, const plFormatString &string) |
| Status information during debugging. Very verbose. Usually only temporarily added to the code.
|
|
template<typename... ARGS> |
static void | Debug (plStringView sFormat, ARGS &&... args) |
| Status information during debugging. Very verbose. Usually only temporarily added to the code.
|
|
template<typename... ARGS> |
static void | Debug (plLogInterface *pInterface, plStringView sFormat, ARGS &&... args) |
| Overload of Debug() to output messages to a specific log.
|
|
static bool | Flush (plUInt32 uiNumNewMsgThreshold=0, plTime timeIntervalThreshold=plTime::MakeFromSeconds(10), plLogInterface *pInterface=GetThreadLocalLogSystem()) |
| Instructs log writers to flush their caches, to ensure all log output (even non-critical information) is written.
|
|
static void | BroadcastLoggingEvent (plLogInterface *pInterface, plLogMsgType::Enum type, plStringView sString) |
| Usually called internally by the other log functions, but can be called directly, if the message type is already known. pInterface must be != nullptr.
|
|
static void | Print (const char *szText) |
| Calls low-level OS functionality to print a string to the typical outputs, e.g. printf and OutputDebugString.
|
|
static void | Printf (const char *szFormat,...) |
| Calls low-level OS functionality to print a string to the typical outputs. Forwards to Print.
|
|
static void | SetCustomPrintFunction (PrintFunction func) |
| Sets a custom function that is called in addition to the default behavior of plLog::Print.
|
|
static void | OsMessageBox (const plFormatString &text) |
| Shows a simple message box using the OS functionality.
|
|
static void | GenerateFormattedTimestamp (TimestampMode mode, plStringBuilder &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.