Fixed failing tests

This commit is contained in:
Trustin Lee 2008-08-25 11:04:01 +00:00
parent 9dabeb4e47
commit 4d13ccc109
2 changed files with 5 additions and 3 deletions

View File

@ -34,9 +34,11 @@ import org.apache.commons.logging.Log;
class CommonsLogger implements InternalLogger {
private final Log logger;
private final String loggerName;
CommonsLogger(Log logger) {
CommonsLogger(Log logger, String loggerName) {
this.logger = logger;
this.loggerName = loggerName;
}
public void debug(String msg) {
@ -89,6 +91,6 @@ class CommonsLogger implements InternalLogger {
@Override
public String toString() {
return logger.toString();
return loggerName;
}
}

View File

@ -41,6 +41,6 @@ public class CommonsLoggerFactory extends InternalLoggerFactory {
public InternalLogger newInstance(String name) {
final org.apache.commons.logging.Log logger =
org.apache.commons.logging.LogFactory.getLog(name);
return new CommonsLogger(logger);
return new CommonsLogger(logger, name);
}
}