36#define LOG_DEFINITION(Tag) extern LogTag Tag;
37#define LOG_DECLARATION(Tag, Header) LogTag Tag(#Header);
85 #define REGISTER_LOGSINK(SINK) REGISTER_INSTANCE(LogSinks, SINK)
#define DEFINE_INSTANCE_REGISTRY(NAME, TYPE)
Definition ClassRegistry.hpp:6
virtual void Log(const LogMessage &message)=0
Logging callback that is executed by Logger.
Class responsible for all logging related functionality.
Definition Log.hpp:56
static void LogVA(const LogTag &tag, LogCategory category, String format, va_list arguments)
Log a messages with the provided format string and variadic argument list.
Definition Log.cpp:34
static void Destroy()
Definition Log.cpp:29
static void Log(const LogTag &tag, LogCategory category, String format,...)
Log a messages with the provided format string and arguments.
Definition Log.cpp:49
static void Init()
Definition Log.cpp:24
LogCategory
Logging category.
Definition Log.hpp:10
@ LC_Warning
Warning category. Reports potential issues.
Definition Log.hpp:14
@ LC_Debug
Debugging category. Shows debug info. Not visible to the end user.
Definition Log.hpp:12
@ LC_Info
Info category. Communicates generic informative messages.
Definition Log.hpp:13
@ LC_Trace
Tracing category. Provides in-depth insight of a sequence of events. Not visible to the end user.
Definition Log.hpp:11
@ LC_Fatal
Fatal category. Reports critical issues. This will also stop execution of the application.
Definition Log.hpp:16
@ LC_Error
Error category. Reports issues.
Definition Log.hpp:15
String message
Definition Log.hpp:44
const LogTag & tag
Definition Log.hpp:42
LogCategory category
Definition Log.hpp:43
Defines a logging tag. To be defined and declared with LOG_DEFINITION and LOG_DECLARATION.
Definition Log.hpp:21
void Log(LogCategory category, String format,...)
Log a message with this tag.
Definition Log.cpp:16
String name
Name of this log tag.
Definition Log.hpp:33