Class VulkanDebugUtilsSLF4JRouted
- All Implemented Interfaces:
VulkanDebugUtilsMessengerCallbackEXTType
In contrast to VulkanDebugUtilsSLF4J, which logs all messages to a
single logger, this callback asks a VulkanDebugUtilsLoggerRouterType
which logger should handle each message.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a callback.VulkanDebugUtilsSLF4JRouted(VulkanDebugUtilsLoggerRouterType inRouter, VulkanDebugUtilsInfoBehavior inInfoBehavior) Construct a callback.VulkanDebugUtilsSLF4JRouted(org.slf4j.Logger inGeneralLogger, org.slf4j.Logger inValidationLogger, org.slf4j.Logger inPerformanceLogger) Construct a callback that routes messages to one of three loggers based on the message type flags.VulkanDebugUtilsSLF4JRouted(org.slf4j.Logger inGeneralLogger, org.slf4j.Logger inValidationLogger, org.slf4j.Logger inPerformanceLogger, VulkanDebugUtilsInfoBehavior inInfoBehavior) Construct a callback that routes messages to one of three loggers based on the message type flags. -
Method Summary
Modifier and TypeMethodDescriptionbooleancall(Set<VulkanDebugUtilsMessageSeverityFlag> severity, Set<VulkanDebugUtilsMessageTypeFlag> types, VulkanDebugUtilsMessengerCallbackDataEXT data) The callback method.
-
Constructor Details
-
VulkanDebugUtilsSLF4JRouted
Construct a callback.- Parameters:
inRouter- The logger router
-
VulkanDebugUtilsSLF4JRouted
public VulkanDebugUtilsSLF4JRouted(VulkanDebugUtilsLoggerRouterType inRouter, VulkanDebugUtilsInfoBehavior inInfoBehavior) Construct a callback.- Parameters:
inRouter- The logger routerinInfoBehavior- The info behavior
-
VulkanDebugUtilsSLF4JRouted
public VulkanDebugUtilsSLF4JRouted(org.slf4j.Logger inGeneralLogger, org.slf4j.Logger inValidationLogger, org.slf4j.Logger inPerformanceLogger) Construct a callback that routes messages to one of three loggers based on the message type flags.Messages with the
VALIDATIONtype are logged toinValidationLogger, messages with thePERFORMANCEtype are logged toinPerformanceLogger, and all other messages are logged toinGeneralLogger. If a message carries multiple type flags, the most specific flag takes precedence:VALIDATION, thenPERFORMANCE, thenGENERAL.- Parameters:
inGeneralLogger- The logger for general messagesinValidationLogger- The logger for validation messagesinPerformanceLogger- The logger for performance messages
-
VulkanDebugUtilsSLF4JRouted
public VulkanDebugUtilsSLF4JRouted(org.slf4j.Logger inGeneralLogger, org.slf4j.Logger inValidationLogger, org.slf4j.Logger inPerformanceLogger, VulkanDebugUtilsInfoBehavior inInfoBehavior) Construct a callback that routes messages to one of three loggers based on the message type flags.Messages with the
VALIDATIONtype are logged toinValidationLogger, messages with thePERFORMANCEtype are logged toinPerformanceLogger, and all other messages are logged toinGeneralLogger. If a message carries multiple type flags, the most specific flag takes precedence:VALIDATION, thenPERFORMANCE, thenGENERAL.- Parameters:
inGeneralLogger- The logger for general messagesinValidationLogger- The logger for validation messagesinPerformanceLogger- The logger for performance messagesinInfoBehavior- The info behavior
-
-
Method Details
-
call
public boolean call(Set<VulkanDebugUtilsMessageSeverityFlag> severity, Set<VulkanDebugUtilsMessageTypeFlag> types, VulkanDebugUtilsMessengerCallbackDataEXT data) Description copied from interface:VulkanDebugUtilsMessengerCallbackEXTTypeThe callback method. The method should returnfalse.- Specified by:
callin interfaceVulkanDebugUtilsMessengerCallbackEXTType- Parameters:
severity- The message severitytypes- The message typesdata- The message data- Returns:
- A value interpreted in a layer-specified manner
-