Skip to content

Commit

Permalink
Log warning in case of standard Commons Logging discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller authored and mdeinum committed Jun 29, 2023
1 parent 93deb55 commit ee3f810
Showing 1 changed file with 7 additions and 1 deletion.
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2023 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -36,6 +36,12 @@ public class LogFactoryService extends LogFactory {
private final Map<String, Object> attributes = new ConcurrentHashMap<>();


public LogFactoryService() {
System.out.println("Standard Commons Logging discovery in action with spring-jcl: " +
"please remove commons-logging.jar from classpath in order to avoid potential conflicts");
}


@Override
public Log getInstance(Class<?> clazz) {
return getInstance(clazz.getName());
Expand Down

0 comments on commit ee3f810

Please sign in to comment.