|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Go to the source code of this file.
Namespaces | |
| namespace | EngineCore |
| Log category system implementation. | |
Macros | |
| #define | VS_LOG_COMPILE_TIME_VERBOSITY ::EngineCore::LogVerbosity::Verbose |
| Compile-time check if a verbosity level should be compiled in. | |
| #define | VS_LOG(Category, Verbosity, Format, ...) |
| Log a message with category and verbosity. | |
| #define | VS_LOG_SIMPLE(Category, Verbosity, Message) |
| Log a simple message without format arguments. | |
| #define | VS_CLOG(Condition, Category, Verbosity, Format, ...) |
| Conditional log - only logs if condition is true. | |
| #define | VS_LOG_ONCE(Category, Verbosity, Format, ...) |
| Log once - only logs the first time this line is executed. | |
| #define | VS_LOG_FATAL(Category, Format, ...) |
| #define | VS_LOG_ERROR(Category, Format, ...) |
| #define | VS_LOG_WARNING(Category, Format, ...) |
| #define | VS_LOG_INFO(Category, Format, ...) |
| #define | VS_LOG_DEBUG(Category, Format, ...) |
| #define | VS_LOG_VERBOSE(Category, Format, ...) |
Functions | |
| template<typename... Args> | |
| void | EngineCore::logImpl (LogCategory &category, LogVerbosity verbosity, const char *file, int line, const char *func, std::format_string< Args... > fmt, Args &&... args) |
| Internal helper to format and output a log message. | |
| void | EngineCore::logImplSimple (LogCategory &category, LogVerbosity verbosity, const char *file, int line, const char *func, const char *message) |
| Internal helper for messages without format arguments. | |
| #define VS_CLOG | ( | Condition, | |
| Category, | |||
| Verbosity, | |||
| Format, | |||
| ... ) |
Conditional log - only logs if condition is true.
| Condition | Boolean expression |
| Category | LogCategory instance |
| Verbosity | LogVerbosity level |
| Format | std::format compatible format string |
| ... | Format arguments |
Definition at line 158 of file LogMacros.h.
| #define VS_LOG | ( | Category, | |
| Verbosity, | |||
| Format, | |||
| ... ) |
Log a message with category and verbosity.
| Category | LogCategory instance (e.g., LogLOD) |
| Verbosity | LogVerbosity level (e.g., Info, Warning, Verbose) |
| Format | std::format compatible format string |
| ... | Format arguments |
Example: VS_LOG(LogLOD, Info, "Generated {} clusters in {} ms", clusterCount, timeMs);
Definition at line 122 of file LogMacros.h.
Referenced by EngineCore::ClusterLodGenerator::generate(), EngineCore::Renderer::renderToXr(), and EngineCore::RenderingDataManager::updatePrimitiveDataInstanced().
| #define VS_LOG_COMPILE_TIME_VERBOSITY ::EngineCore::LogVerbosity::Verbose |
Compile-time check if a verbosity level should be compiled in.
In Release builds, you can define VS_LOG_COMPILE_TIME_VERBOSITY to strip verbose logs entirely. Default is Verbose (all logs compiled in).
Definition at line 103 of file LogMacros.h.
| #define VS_LOG_DEBUG | ( | Category, | |
| Format, | |||
| ... ) |
Definition at line 185 of file LogMacros.h.
| #define VS_LOG_ERROR | ( | Category, | |
| Format, | |||
| ... ) |
Definition at line 182 of file LogMacros.h.
| #define VS_LOG_FATAL | ( | Category, | |
| Format, | |||
| ... ) |
Definition at line 181 of file LogMacros.h.
| #define VS_LOG_INFO | ( | Category, | |
| Format, | |||
| ... ) |
Definition at line 184 of file LogMacros.h.
| #define VS_LOG_ONCE | ( | Category, | |
| Verbosity, | |||
| Format, | |||
| ... ) |
Log once - only logs the first time this line is executed.
Definition at line 168 of file LogMacros.h.
Referenced by EngineCore::Renderer::renderToXr().
| #define VS_LOG_SIMPLE | ( | Category, | |
| Verbosity, | |||
| Message ) |
Log a simple message without format arguments.
Slightly more efficient when no formatting is needed.
Definition at line 138 of file LogMacros.h.
| #define VS_LOG_VERBOSE | ( | Category, | |
| Format, | |||
| ... ) |
Definition at line 186 of file LogMacros.h.
| #define VS_LOG_WARNING | ( | Category, | |
| Format, | |||
| ... ) |
Definition at line 183 of file LogMacros.h.