Class CoreVersionUtil

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 Details

  • 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