Class LogUtil

java.lang.Object
net.sf.jailer.util.LogUtil

public class LogUtil extends Object
Logging utilities.
Author:
Ralf Wisser
  • Constructor Details

    • LogUtil

      public LogUtil()
  • Method Details

    • initLog4jConfig

      public static void initLog4jConfig(File baseDir)
      Initializes the log4j configuration with the given base directory.
      Parameters:
      baseDir - the base directory to use as the log directory, or null for the current directory
    • setWarn

      public static void setWarn(LogUtil.Warn warn)
      Sets the warning callback.
      Parameters:
      warn - the warning callback, or null to clear it
    • warn

      public static void warn(Throwable t)
      Issues a warning for the given throwable. Prints the stack trace and notifies the registered LogUtil.Warn callback.
      Parameters:
      t - the throwable to warn about