- java.lang.Object
-
- ch.qos.logback.core.util.CoreVersionUtil
-
public class CoreVersionUtil extends Object
Utility class for retrieving version information of the "logback-core" module.- Since:
- 1.5.26
-
-
Constructor Summary
Constructors Constructor Description CoreVersionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetCoreVersionBySelfDeclaredProperties()Retrieves the version of the "logback-core" module using a properties file associated with the module.
-
-
-
Constructor Detail
-
CoreVersionUtil
public CoreVersionUtil()
-
-
Method Detail
-
getCoreVersionBySelfDeclaredProperties
public static String getCoreVersionBySelfDeclaredProperties()
Retrieves the version of the "logback-core" module using a properties file associated with the module.The method locates and reads a properties file named "logback-core-version.properties" in the package of the
CoreConstants.class. It then extracts the version information using the key "logback-core-version".- Returns:
- the version of the "logback-core" module as a string, or null if the version cannot be determined
- Since:
- 1.5.26
-
-