Switched to the new logging API.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5139 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-05-28 22:21:04 +00:00
parent 83693608d8
commit c915f24010
@@ -21,20 +21,19 @@
package com.threerings.presents.client; package com.threerings.presents.client;
import com.samskivert.util.Log; import com.samskivert.util.Logger;
/** /**
* Implements the basic {@link InvocationService.InvocationListener} and * Implements the basic {@link InvocationService.InvocationListener} and logs the failure.
* logs the failure.
*/ */
public class LoggingListener public class LoggingListener
implements InvocationService.InvocationListener implements InvocationService.InvocationListener
{ {
/** /**
* Constructs a listener that will report the supplied error message * Constructs a listener that will report the supplied error message along with the reason for
* along with the reason for failure to the supplied log object. * failure to the supplied log object.
*/ */
public LoggingListener (Log log, String errmsg) public LoggingListener (Logger log, String errmsg)
{ {
_log = log; _log = log;
_errmsg = errmsg; _errmsg = errmsg;
@@ -46,6 +45,6 @@ public class LoggingListener
_log.warning(_errmsg + " [reason=" + reason + "]."); _log.warning(_errmsg + " [reason=" + reason + "].");
} }
protected Log _log; protected Logger _log;
protected String _errmsg; protected String _errmsg;
} }