From f0f253c95b252938d9c72d2f00f3949395826ab4 Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 4 Jun 2012 19:44:52 +0200 Subject: [PATCH] fix --- log4j-over-slf4j/src/main/java/org/apache/log4j/LogManager.java | 5 +++++ log4j-over-slf4j/src/main/java/org/apache/log4j/Logger.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/log4j-over-slf4j/src/main/java/org/apache/log4j/LogManager.java b/log4j-over-slf4j/src/main/java/org/apache/log4j/LogManager.java index bcab830..8368102 100644 --- a/log4j-over-slf4j/src/main/java/org/apache/log4j/LogManager.java +++ b/log4j-over-slf4j/src/main/java/org/apache/log4j/LogManager.java @@ -16,6 +16,8 @@ package org.apache.log4j; +import org.apache.log4j.spi.LoggerFactory; + import java.util.Enumeration; import java.util.Vector; @@ -46,6 +48,9 @@ public class LogManager { return Log4jLoggerFactory.getLogger(clazz.getName()); } + public static Logger getLogger(String name, LoggerFactory loggerFactory) { + return loggerFactory.makeNewLoggerInstance(name); + } /** * This bogus implementation returns an empty enumeration. diff --git a/log4j-over-slf4j/src/main/java/org/apache/log4j/Logger.java b/log4j-over-slf4j/src/main/java/org/apache/log4j/Logger.java index 7d3c6ca..98c1d64 100644 --- a/log4j-over-slf4j/src/main/java/org/apache/log4j/Logger.java +++ b/log4j-over-slf4j/src/main/java/org/apache/log4j/Logger.java @@ -31,7 +31,7 @@ public class Logger extends Category { private static final String LOGGER_FQCN = Logger.class.getName(); - Logger(String name) { + protected Logger(String name) { super(name); } -- 1.7.10.msysgit.1