-
-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
We want to add simple logging categories (like VFS, RHI, SceneGraph) without creating multiple loggers or sinks. Instead of creating new loggers, we can just print the category in the message using macros.
#define RAZIX_CORE_INFO_CAT(CAT, ...) \
::Razix::Debug::RZLog::GetCoreLogger()->info("[" #CAT "] " __VA_ARGS__)
#define RAZIX_CORE_WARN_CAT(CAT, ...) \
::Razix::Debug::RZLog::GetCoreLogger()->warn("[" #CAT "] " __VA_ARGS__)
RAZIX_CORE_INFO_CAT(VFS, "Mounted pak file: {}", pakName);
RAZIX_CORE_WARN_CAT(SceneGraph, "Node {} has no mesh", nodeName);
Metadata
Metadata
Assignees
Labels
No labels