Class SnapLoaderLogger

java.lang.Object
electrostatic4j.snaploader.util.SnapLoaderLogger

public final class SnapLoaderLogger extends Object
  • Constructor Details

    • SnapLoaderLogger

      public SnapLoaderLogger()
  • Method Details

    • log

      public static void log(Level level, String sourceClass, String sourceMethod, String msg)
      Log data with a level and a throwable (optional).
      Parameters:
      level - the logger level
      sourceMethod - the source of this call
      msg - a string formatted message to display
    • log

      public static void log(Level level, String sourceClass, String sourceMethod, String msg, Throwable throwable)
      Log data with a level and a throwable (optional).
      Parameters:
      level - the logger level
      sourceMethod - the source of this call
      msg - a string formatted message to display
      throwable - optional param for error messages
    • setLoggingEnabled

      public static void setLoggingEnabled(boolean loggingEnabled)
      Enables the logging for this object, default value is false.
      Parameters:
      loggingEnabled - true to enable logging, false otherwise
    • isLoggingEnabled

      public static boolean isLoggingEnabled()
      Tests the logging flag, default value is false.
      Returns:
      true if the logging flag is enabled, false otherwise