Skip to content

Commit cca8fbd

Browse files
committed
Log warning in case of standard Commons Logging discovery
Closes gh-30575
1 parent 21397a6 commit cca8fbd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spring-jcl/src/main/java/org/apache/commons/logging/LogFactoryService.java

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,6 +36,12 @@ public class LogFactoryService extends LogFactory {
3636
private final Map<String, Object> attributes = new ConcurrentHashMap<>();
3737

3838

39+
public LogFactoryService() {
40+
System.out.println("Standard Commons Logging discovery in action with spring-jcl: " +
41+
"please remove commons-logging.jar from classpath in order to avoid potential conflicts");
42+
}
43+
44+
3945
@Override
4046
public Log getInstance(Class<?> clazz) {
4147
return getInstance(clazz.getName());

0 commit comments

Comments
 (0)