You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2008/04/17 07:57:04 UTC
svn commit: r648960 -
/james/server/trunk/spoolmanager-function/src/main/java/org/apache/james/transport/mailets/SPF.java
Author: norman
Date: Wed Apr 16 22:57:03 2008
New Revision: 648960
URL: http://svn.apache.org/viewvc?rev=648960&view=rev
Log:
Fix a bug in Logger handling which cause an Exception on mailet init ( Thx to Jerry for reporting )
Modified:
james/server/trunk/spoolmanager-function/src/main/java/org/apache/james/transport/mailets/SPF.java
Modified: james/server/trunk/spoolmanager-function/src/main/java/org/apache/james/transport/mailets/SPF.java
URL: http://svn.apache.org/viewvc/james/server/trunk/spoolmanager-function/src/main/java/org/apache/james/transport/mailets/SPF.java?rev=648960&r1=648959&r2=648960&view=diff
==============================================================================
--- james/server/trunk/spoolmanager-function/src/main/java/org/apache/james/transport/mailets/SPF.java (original)
+++ james/server/trunk/spoolmanager-function/src/main/java/org/apache/james/transport/mailets/SPF.java Wed Apr 16 22:57:03 2008
@@ -99,9 +99,15 @@
private class SPFLoggerAdapter implements Logger {
private boolean debug = false;
+ private String name = "SPFLogger";
public SPFLoggerAdapter(boolean debug) {
-
+ this.debug = debug;
+ }
+
+ public SPFLoggerAdapter(String name, boolean debug) {
+ this.name = name;
+ this.debug = debug;
}
public void debug(String arg0) {
@@ -132,8 +138,8 @@
log(arg0, arg1);
}
- public Logger getChildLogger(String arg0) {
- throw new UnsupportedOperationException("Not supported");
+ public Logger getChildLogger(String childName) {
+ return new SPFLoggerAdapter(name + "." + childName, debug);
}
public void info(String arg0) {
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org