-
public final class RendererLoggerUtility class for logging renderer-related debug output.
Use setEnabled to toggle logging globally. This class avoids the need for scattered conditionals in the codebase.
-
-
Field Summary
Fields Modifier and Type Field Description private static booleanenabled
-
Method Summary
Modifier and Type Method Description static voidsetEnabled(boolean value)Enables or disables logging. static voidd(String tag, String message)Logs a debug message if logging is enabled. static voidi(String tag, String message)Logs an info message if logging is enabled. static voidw(String tag, String message)Logs a warning message if logging is enabled. static voide(String tag, String message)Logs an error message if logging is enabled. -
-
Method Detail
-
setEnabled
static void setEnabled(boolean value)
Enables or disables logging.
- Parameters:
value-{@code true}to enable logging;{@code false}to disable it.
-
d
static void d(String tag, String message)
Logs a debug message if logging is enabled.
- Parameters:
tag- Tag for the log message.message- The debug message to log.
-
i
static void i(String tag, String message)
Logs an info message if logging is enabled.
- Parameters:
tag- Tag for the log message.message- The info message to log.
-
w
static void w(String tag, String message)
Logs a warning message if logging is enabled.
- Parameters:
tag- Tag for the log message.message- The warning message to log.
-
-
-
-