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 {
78
78
}
79
79
80
80
public void autoConfig (ClassLoader classLoader ) throws JoranException {
81
- String versionStr = EnvUtil .ourVersion ();
81
+ String versionStr = EnvUtil .logbackVersion ();
82
82
loggerContext .getStatusManager ().add (new InfoStatus (CoreConstants .LOGBACK_CLASSIC_VERSION_MESSAGE + versionStr , loggerContext ));
83
83
StatusListenerConfigHelper .installIfAsked (loggerContext );
84
84
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 {
13
13
// is added when creating the jar.
14
14
@ Test
15
15
public void versionTest () {
16
- String versionStr = EnvUtil .ourVersion ();
16
+ String versionStr = EnvUtil .logbackVersion ();
17
17
assertNotNull (versionStr );
18
18
assertTrue (versionStr .startsWith ("1.3" ));
19
19
}
Original file line number Diff line number Diff line change 13
13
*/
14
14
package ch .qos .logback .core .util ;
15
15
16
- import ch .qos .logback .core .CoreConstants ;
17
-
18
16
/**
19
17
* @author Ceki Gülcü
20
18
*/
@@ -31,7 +29,7 @@ private EnvUtil() {
31
29
* @since 1.3.0
32
30
* @return current version or null if missing version data
33
31
*/
34
- static public String ourVersion () {
32
+ static public String logbackVersion () {
35
33
Package pkg = EnvUtil .class .getPackage ();
36
34
if (pkg == null ) {
37
35
return null ;
You can’t perform that action at this time.
0 commit comments