Update of /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/profile/echo
In directory usw-pr-cvs1:/tmp/cvs-serv7584/src/org/beepcore/beep/profile/echo
Modified Files:
EchoProfile.java
Log Message:
changed to use commons-logging
Index: EchoProfile.java
===================================================================
RCS file: /cvsroot/beepcore-java/beepcore-java/src/org/beepcore/beep/profile/echo/EchoProfile.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** EchoProfile.java 23 Jan 2002 18:40:29 -0000 1.14
--- EchoProfile.java 5 Oct 2002 15:31:35 -0000 1.15
***************
*** 3,6 ****
--- 3,7 ----
*
* Copyright (c) 2001 Invisible Worlds, Inc. All rights reserved.
+ * Copyright (c) 2002 Huston Franklin. All rights reserved.
*
* The contents of this file are subject to the Blocks Public License (the
***************
*** 22,28 ****
import java.io.InputStream;
import org.beepcore.beep.core.*;
import org.beepcore.beep.profile.*;
! import org.beepcore.beep.util.*;
--- 23,32 ----
import java.io.InputStream;
+ import org.apache.commons.logging.Log;
+ import org.apache.commons.logging.LogFactory;
+
import org.beepcore.beep.core.*;
import org.beepcore.beep.profile.*;
! import org.beepcore.beep.util.BufferSegment;
***************
*** 43,46 ****
--- 47,52 ----
"http://xml.resource.org/profiles/NULL/ECHO";
+ private Log log = LogFactory.getLog(this.getClass());
+
public StartChannelListener init(String uri, ProfileConfiguration config)
throws BEEPException
***************
*** 52,56 ****
throws StartChannelException
{
! Log.logEntry(Log.SEV_DEBUG, "EchoCCL StartChannel Callback");
channel.setMessageListener(this);
}
--- 58,62 ----
throws StartChannelException
{
! log.debug("EchoCCL StartChannel Callback");
channel.setMessageListener(this);
}
***************
*** 58,62 ****
public void closeChannel(Channel channel) throws CloseChannelException
{
! Log.logEntry(Log.SEV_DEBUG, "EchoCCL CloseChannel Callback");
channel.setMessageListener(null);
}
--- 64,68 ----
public void closeChannel(Channel channel) throws CloseChannelException
{
! log.debug("EchoCCL CloseChannel Callback");
channel.setMessageListener(null);
}
|