Use new logging API.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@508 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Michael Bayne
2008-05-27 19:42:20 +00:00
parent 209504479d
commit 63bedb6649
@@ -3,16 +3,17 @@
package com.threerings.jme.server; package com.threerings.jme.server;
import com.threerings.crowd.Log;
import com.threerings.crowd.data.PlaceObject; import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.server.CrowdServer; import com.threerings.crowd.server.CrowdServer;
import com.threerings.crowd.server.PlaceManager; import com.threerings.crowd.server.PlaceManager;
import com.threerings.jme.data.JabberConfig; import com.threerings.jme.data.JabberConfig;
import static com.threerings.crowd.Log.log;
/** /**
* A basic server that creates a single room and sticks everyone in it * A basic server that creates a single room and sticks everyone in it where they can chat with one
* where they can chat with one another. * another.
*/ */
public class JabberServer extends CrowdServer public class JabberServer extends CrowdServer
{ {
@@ -24,7 +25,7 @@ public class JabberServer extends CrowdServer
// create a single location // create a single location
_place = plreg.createPlace(new JabberConfig()); _place = plreg.createPlace(new JabberConfig());
Log.info("Created chat room " + _place.where() + "."); log.info("Created chat room " + _place.where() + ".");
} }
public static void main (String[] args) public static void main (String[] args)
@@ -34,8 +35,7 @@ public class JabberServer extends CrowdServer
server.init(); server.init();
server.run(); server.run();
} catch (Exception e) { } catch (Exception e) {
Log.warning("Unable to initialize server."); log.warning("Unable to initialize server.", e);
Log.logStackTrace(e);
} }
} }