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>
Public Types | |
| using | LogEvent = AZ::Event< LogLevel, const char *, const char *, const char *, int32_t > |
Public Member Functions | |
| AZ_RTTI (ILogger, "{69950316-3626-4C9D-9DCA-2E7ABF84C0A9}") | |
| virtual void | SetLogName (const char *logName)=0 |
| virtual const char * | GetLogName () const =0 |
| virtual void | SetLogLevel (LogLevel logLevel)=0 |
| virtual LogLevel | GetLogLevel () const =0 |
| virtual void | BindLogHandler (LogEvent::Handler &hander)=0 |
| virtual bool | IsTagEnabled (AZ::HashValue32 hashValue)=0 |
| virtual void | Flush ()=0 |
| void | va_start (args, line) |
| va_end (args) | |
This is an AZ::Interface<> for logging. Usage: #include <AzCore/Console/ILogger.h> AZLOG_INFO("Your message here"); AZLOG_WARN("Your warn message here");.
Binds a log event handler.
| handler | the handler to bind to logging events |
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
Gets the log level for the logger instance.
Gets the the name of the log file.
|
pure virtual |
Queries whether the provided logging tag is enabled.
| hashValue | the hash value for the provided logging tag |
Sets the log level for the logger instance.
| logLevel | the minimum log level to filter out log messages at |
Sets the the name of the log file.
| a_LogName | the new logfile name to use |