Class CoreVersionUtil
java.lang.Object
ch.qos.logback.core.util.CoreVersionUtil
Utility class for retrieving version information of the "logback-core" module.
- Since:
- 1.5.26
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringRetrieves the version of the "logback-core" module using a properties file associated with the module.
-
Constructor Details
-
CoreVersionUtil
public CoreVersionUtil()
-
-
Method Details
-
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
-