Class EnvUtil

java.lang.Object
ch.qos.logback.core.util.EnvUtil

public class EnvUtil extends Object
Author:
Ceki Gülcü
  • Method Details

    • logbackVersion

      public static String logbackVersion()

      Returns the current version of logback, or null if data is not available.

      Returns:
      current version or null if missing version data
      Since:
      1.3.0
    • getJDKVersion

      public static int getJDKVersion(String javaVersionStr)
    • isJDK5

      public static boolean isJDK5()
    • isJDK6OrHigher

      public static boolean isJDK6OrHigher()
    • isJDK7OrHigher

      public static boolean isJDK7OrHigher()
    • isJDK16OrHigher

      public static boolean isJDK16OrHigher()
    • isJDK18OrHigher

      public static boolean isJDK18OrHigher()
    • isJDK21OrHigher

      public static boolean isJDK21OrHigher()
      Returns:
      true if runtime JDK is version 21 or higher
      Since:
      logback 1.3.12/1.4.12
    • isJaninoAvailable

      public static boolean isJaninoAvailable()
    • isWindows

      public static boolean isWindows()
    • isClassAvailable

      public static boolean isClassAvailable(Class callerClass, String className)