File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
main/java/ch/qos/logback/classic/util
test/java/ch/qos/logback/classic/util
logback-core/src/main/java/ch/qos/logback/core/util Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public void autoConfig() throws JoranException {
7878 }
7979
8080 public void autoConfig (ClassLoader classLoader ) throws JoranException {
81- String versionStr = EnvUtil .ourVersion ();
81+ String versionStr = EnvUtil .logbackVersion ();
8282 loggerContext .getStatusManager ().add (new InfoStatus (CoreConstants .LOGBACK_CLASSIC_VERSION_MESSAGE + versionStr , loggerContext ));
8383 StatusListenerConfigHelper .installIfAsked (loggerContext );
8484 List <Configurator > configuratorList = ClassicEnvUtil .loadFromServiceLoader (Configurator .class , classLoader );
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public class EnvUtilTest {
1313 // is added when creating the jar.
1414 @ Test
1515 public void versionTest () {
16- String versionStr = EnvUtil .ourVersion ();
16+ String versionStr = EnvUtil .logbackVersion ();
1717 assertNotNull (versionStr );
1818 assertTrue (versionStr .startsWith ("1.3" ));
1919 }
Original file line number Diff line number Diff line change 1313 */
1414package ch .qos .logback .core .util ;
1515
16- import ch .qos .logback .core .CoreConstants ;
17-
1816/**
1917 * @author Ceki Gülcü
2018 */
@@ -31,7 +29,7 @@ private EnvUtil() {
3129 * @since 1.3.0
3230 * @return current version or null if missing version data
3331 */
34- static public String ourVersion () {
32+ static public String logbackVersion () {
3533 Package pkg = EnvUtil .class .getPackage ();
3634 if (pkg == null ) {
3735 return null ;
You can’t perform that action at this time.
0 commit comments