Class Logger

java.lang.Object
com.vividsolutions.jump.workbench.Logger

public class Logger extends Object
a generalized logger interface for OJ package usage currently based on log4j v1.2 TODO: - move to commons-logging to be more implementation independent -implement class:line logging for legacy log4j using code
Author:
ed
  • Constructor Details

    • Logger

      public Logger()
  • Method Details

    • fatal

      public static void fatal(String msg)
    • error

      public static void error(String msg)
    • warn

      public static void warn(String msg)
    • info

      public static void info(String msg)
    • debug

      public static void debug(String msg)
    • trace

      public static void trace(String msg)
    • fatal

      public static void fatal(Throwable t)
    • error

      public static void error(Throwable t)
    • warn

      public static void warn(Throwable t)
    • info

      public static void info(Throwable t)
    • debug

      public static void debug(Throwable t)
    • trace

      public static void trace(Throwable t)
    • fatal

      public static void fatal(String msg, Throwable t)
    • error

      public static void error(String msg, Throwable t)
    • warn

      public static void warn(String msg, Throwable t)
    • info

      public static void info(String msg, Throwable t)
    • debug

      public static void debug(String msg, Throwable t)
    • trace

      public static void trace(String msg, Throwable t)
    • log

      public static void log(String msg, Throwable t, Logger.LogLevel logLevel, StackTraceElement calledFrom)
      log msg, throwable with log level from one stack before the given StackTraceElement code location
      Parameters:
      msg - message to log
      t - throwable to log
      logLevel - log level of the message
      calledFrom - Exception stacktrace
    • getLogFiles

      public static List<File> getLogFiles()
      get current file appenders, mainly for display purposes eg. in GenerateLogPlugIn
      Returns:
      files list
    • setLevel

      public static void setLevel(String levelString)
      setting current log level for the root logger (internally use org.apache.log4j.Level.toLevel)
      Parameters:
      levelString - a string representing the LogLevel
    • getLevel

      public static Logger.LogLevel getLevel()
      Returns:
      the current log level for the calling class
    • isFatalEnabled

      public static boolean isFatalEnabled()
    • isErrorEnabled

      public static boolean isErrorEnabled()
    • isWarnEnabled

      public static boolean isWarnEnabled()
    • isInfoEnabled

      public static boolean isInfoEnabled()
    • isDebugEnabled

      public static boolean isDebugEnabled()
    • isTraceEnabled

      public static boolean isTraceEnabled()