File: 10-disable-slf4j-factory.patch

package info (click to toggle)
libcommons-logging-java 1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,304 kB
  • sloc: java: 6,343; xml: 3,413; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 861 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Disables the SLF4J log factory
Author: Emmanuel Bourg <ebourg@apache.org>
Bug: https://issues.apache.org/jira/browse/LOGGING-197
Bug-Debian: https://bugs.debian.org/1060960
--- a/src/main/java/org/apache/commons/logging/LogFactory.java
+++ b/src/main/java/org/apache/commons/logging/LogFactory.java
@@ -929,10 +929,12 @@
                 }
             }
 
+/*
             if (factory == null && isClassAvailable(SLF4J_API_LOGGER, baseClassLoader)) {
                 logDiagnostic("[LOOKUP] SLF4J detected. Loading the SLF4J LogFactory implementation '" + FACTORY_SLF4J + "'.");
                 factory = newFactory(FACTORY_SLF4J, baseClassLoader, contextClassLoader);
             }
+*/
         } catch (final Exception e) {
             logDiagnostic("[LOOKUP] An exception occurred while creating LogFactory: " + e.getMessage());
         }