Class Logger

java.lang.Object
com.cercalia.sdk.util.Logger

public final class Logger extends Object
Simple logging utility for Cercalia SDK. Provides debug, info, warn, and error logging levels.
  • Method Details

    • getInstance

      public static Logger getInstance()
      Returns the singleton Logger instance.
      Returns:
      the Logger instance.
    • setDebugEnabled

      public static void setDebugEnabled(boolean enabled)
      Enables or disables debug logging.
      Parameters:
      enabled - true to enable debug logging.
    • isDebugEnabled

      public static boolean isDebugEnabled()
      Checks if debug logging is enabled.
      Returns:
      true if debug logging is enabled.
    • info

      public void info(String message)
      Logs an info message.
      Parameters:
      message - the message to log.
    • info

      public void info(String format, Object... args)
      Logs an info message with arguments.
      Parameters:
      format - the message format.
      args - the arguments.
    • error

      public void error(String message)
      Logs an error message.
      Parameters:
      message - the message to log.
    • error

      public void error(String format, Object... args)
      Logs an error message with arguments.
      Parameters:
      format - the message format.
      args - the arguments.
    • error

      public void error(String message, Throwable throwable)
      Logs an error message with a throwable.
      Parameters:
      message - the message to log.
      throwable - the throwable to log.
    • warn

      public void warn(String message)
      Logs a warning message.
      Parameters:
      message - the message to log.
    • warn

      public void warn(String format, Object... args)
      Logs a warning message with arguments.
      Parameters:
      format - the message format.
      args - the arguments.
    • debug

      public void debug(String message)
      Logs a debug message (only if debug is enabled).
      Parameters:
      message - the message to log.
    • debug

      public void debug(String format, Object... args)
      Logs a debug message with arguments (only if debug is enabled).
      Parameters:
      format - the message format.
      args - the arguments.