Class ClassicVersionUtil

java.lang.Object
ch.qos.logback.classic.util.ClassicVersionUtil

public class ClassicVersionUtil extends Object
  • Constructor Details

  • Method Details

    • getVersionBySelfDeclaredProperties

      Retrieves the version information for the "logback-classic" module based on its self-declared properties. The method looks for a properties file named "logback-classic-version.properties" within the classpath, reads its contents, and fetches the value associated with the "logback-classic-version" key.
      Returns:
      the version string of the "logback-classic" module if found, or null if the properties file or version key is not present or an error occurs while reading the properties file.
      Since:
      1.5.26