Created Log object for Zone services.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@814 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-12-17 00:56:19 +00:00
parent 6ffaab86f5
commit 661f63373b
4 changed files with 45 additions and 8 deletions
@@ -0,0 +1,38 @@
//
// $Id: Log.java,v 1.1 2001/12/17 00:56:19 mdb Exp $
package com.threerings.whirled.zone;
/**
* A placeholder class that contains a reference to the log object used by
* the Whirled Zone services.
*/
public class Log
{
public static com.samskivert.util.Log log =
new com.samskivert.util.Log("whirled.zone");
/** Convenience function. */
public static void debug (String message)
{
log.debug(message);
}
/** Convenience function. */
public static void info (String message)
{
log.info(message);
}
/** Convenience function. */
public static void warning (String message)
{
log.warning(message);
}
/** Convenience function. */
public static void logStackTrace (Throwable t)
{
log.logStackTrace(com.samskivert.util.Log.WARNING, t);
}
}
@@ -1,12 +1,12 @@
//
// $Id: ZoneService.java,v 1.1 2001/12/04 00:31:58 mdb Exp $
// $Id: ZoneService.java,v 1.2 2001/12/17 00:56:19 mdb Exp $
package com.threerings.whirled.zone.client;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationDirector;
import com.threerings.whirled.Log;
import com.threerings.whirled.zone.Log;
/**
* The zone service class provides the client interface to the zone
@@ -1,5 +1,5 @@
//
// $Id: ZoneProvider.java,v 1.3 2001/12/13 05:49:50 mdb Exp $
// $Id: ZoneProvider.java,v 1.4 2001/12/17 00:56:19 mdb Exp $
package com.threerings.whirled.zone.server;
@@ -11,12 +11,11 @@ import com.threerings.crowd.data.PlaceConfig;
import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.server.LocationProvider;
import com.threerings.whirled.Log;
import com.threerings.whirled.data.SceneModel;
import com.threerings.whirled.server.SceneRegistry;
import com.threerings.whirled.server.SceneManager;
import com.threerings.whirled.zone.Log;
import com.threerings.whirled.zone.client.ZoneCodes;
import com.threerings.whirled.zone.data.ZoneSummary;
import com.threerings.whirled.zone.data.ZonedBodyObject;
@@ -1,5 +1,5 @@
//
// $Id: ZoneRegistry.java,v 1.3 2001/12/13 05:46:11 mdb Exp $
// $Id: ZoneRegistry.java,v 1.4 2001/12/17 00:56:19 mdb Exp $
package com.threerings.whirled.zone.server;
@@ -7,9 +7,9 @@ import com.samskivert.util.Config;
import com.samskivert.util.HashIntMap;
import com.threerings.presents.server.InvocationManager;
import com.threerings.whirled.Log;
import com.threerings.whirled.server.SceneRegistry;
import com.threerings.whirled.zone.Log;
import com.threerings.whirled.zone.server.util.ZoneUtil;
/**