Open 3D Engine EMotionFX Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
#include <LogManager.h>
Inherited by EMStudio::LogWindowCallback, and MCore::AzLogCallback.
Public Types | |
enum | ELogLevel { LOGLEVEL_NONE = 0 , LOGLEVEL_FATAL = 1 << 0 , LOGLEVEL_ERROR = 1 << 1 , LOGLEVEL_WARNING = 1 << 2 , LOGLEVEL_INFO = 1 << 3 , LOGLEVEL_DETAILEDINFO = 1 << 4 , LOGLEVEL_DEBUG = 1 << 5 , LOGLEVEL_ALL = (LOGLEVEL_FATAL | LOGLEVEL_ERROR | LOGLEVEL_WARNING | LOGLEVEL_INFO | LOGLEVEL_DETAILEDINFO | LOGLEVEL_DEBUG) , LOGLEVEL_DEFAULT = (LOGLEVEL_FATAL | LOGLEVEL_ERROR | LOGLEVEL_WARNING | LOGLEVEL_INFO | LOGLEVEL_DETAILEDINFO) } |
Public Member Functions | |
LogCallback () | |
virtual | ~LogCallback () |
virtual void | Log (const char *text, ELogLevel logLevel)=0 |
virtual uint32 | GetType () const =0 |
MCORE_INLINE ELogLevel | GetLogLevels () const |
void | SetLogLevels (ELogLevel logLevels) |
Protected Attributes | |
ELogLevel | m_logLevels |
The log callback interface. Classes inherited from the callback interface can be added to the log manager's stack through which it iterates each time you log something. The Log() method of the callback is called when logging. It can for example be used to write into a combo box in a MFC environment or into an in-game console.
The importance of a logged message.
MCore::LogCallback::LogCallback | ( | ) |
Default constructor.
|
inlinevirtual |
Destructor.
|
inline |
Get the log levels this callback will accept and pass through. To check if a log level is enabled use logical bitwise and comparison, example: if (GetLogLevels() & LOGLEVEL_EXAMPLE).
|
pure virtual |
Get the unique log callback type ID.
Implemented in MCore::AzLogCallback, and EMStudio::LogWindowCallback.
|
pure virtual |
The abstract callback logging method.
text | The text to log. |
logLevel | The log message priority. |
Implemented in MCore::AzLogCallback, and EMStudio::LogWindowCallback.
void MCore::LogCallback::SetLogLevels | ( | ELogLevel | logLevels | ) |
Set the log levels this callback will accept and pass through. To enable multiple log levels use the logical bitwise or operation, example: (LOGLEVEL_WARNING | LOGLEVEL_INFO). The LogManager will automatically informed about the log level flags change by calling the LogManager::InitLogLevels() function.
logLevels | The log levels packed as bit flags which are enabled on the callback. |
|
protected |
The log levels that will pass the callback. All messages from log flags which are disabled won't be logged. The default value of the log level will be LOGLEVEL_DEFAULT.