java.lang.Object
ch.qos.logback.core.util.EnvUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
getJDKVersion
(String javaVersionStr) static boolean
isClassAvailable
(Class callerClass, String className) static boolean
static boolean
static boolean
static boolean
static boolean
isJDK5()
static boolean
static boolean
static boolean
isMacOs()
static boolean
static String
Returns the current version of logback, or null if data is not available.
-
Method Details
-
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
-
isJDK5
-
isJDK6OrHigher
-
isJDK7OrHigher
-
isJDK16OrHigher
-
isJDK18OrHigher
-
isJDK21OrHigher
- Returns:
- true if runtime JDK is version 21 or higher
- Since:
- logback 1.3.12/1.4.12
-
isJaninoAvailable
-
isMacOs
-
isWindows
-
isClassAvailable
-