This is an AZ::Interface<> for logging. Usage: #include <AzCore/Console/ILogger.h> AZLOG_INFO("Your message here"); AZLOG_WARN("Your warn message here");.
More...
#include <ILogger.h>
|
using | LogEvent = AZ::Event< LogLevel, const char *, const char *, const char *, int32_t > |
|
This is an AZ::Interface<> for logging. Usage: #include <AzCore/Console/ILogger.h> AZLOG_INFO("Your message here"); AZLOG_WARN("Your warn message here");.
◆ BindLogHandler()
Binds a log event handler.
- Parameters
-
handler | the handler to bind to logging events |
◆ Flush()
virtual void AZ::ILogger::Flush |
( |
| ) |
|
|
pure virtual |
Immediately Flushes any pending messages without waiting for next thread update. Should be invoked whenever unloading any shared library or module to avoid crashing on dangling string pointers
◆ GetLogLevel()
virtual LogLevel AZ::ILogger::GetLogLevel |
( |
| ) |
const |
|
pure virtual |
Gets the log level for the logger instance.
- Returns
- the current minimum log level to filter out log messages at
◆ GetLogName()
virtual const char * AZ::ILogger::GetLogName |
( |
| ) |
const |
|
pure virtual |
Gets the the name of the log file.
- Returns
- the current logfile name
◆ IsTagEnabled()
virtual bool AZ::ILogger::IsTagEnabled |
( |
AZ::HashValue32 |
hashValue | ) |
|
|
pure virtual |
Queries whether the provided logging tag is enabled.
- Parameters
-
hashValue | the hash value for the provided logging tag |
- Returns
- boolean true if enabled
◆ SetLogLevel()
virtual void AZ::ILogger::SetLogLevel |
( |
LogLevel |
logLevel | ) |
|
|
pure virtual |
Sets the log level for the logger instance.
- Parameters
-
logLevel | the minimum log level to filter out log messages at |
◆ SetLogName()
virtual void AZ::ILogger::SetLogName |
( |
const char * |
logName | ) |
|
|
pure virtual |
Sets the the name of the log file.
- Parameters
-
a_LogName | the new logfile name to use |
The documentation for this class was generated from the following file:
- Code/Framework/AzCore/AzCore/Console/ILogger.h