//
// $Id$

package com.threerings.jme.server;

import com.threerings.crowd.Log;
import com.threerings.crowd.data.PlaceObject;
import com.threerings.crowd.server.CrowdServer;
import com.threerings.crowd.server.PlaceManager;

import com.threerings.jme.data.JabberConfig;

/**
 * A basic server that creates a single room and sticks everyone in it
 * where they can chat with one another.
 */
public class JabberServer extends CrowdServer
{
    // documentation inherited
    public void init ()
        throws Exception
    {
        super.init();

        // create a single location
        _place = plreg.createPlace(new JabberConfig());
        Log.info("Created chat room " + _place.where() + ".");
    }

    public static void main (String[] args)
    {
        JabberServer server = new JabberServer();
        try {
            server.init();
            server.run();
        } catch (Exception e) {
            Log.warning("Unable to initialize server.");
            Log.logStackTrace(e);
        }
    }

    protected PlaceManager _place;
}

@@ -45,41 +45,8 @@
 r;%0A%0A
-import com.threerings.crowd.Log;%0A
 impo
@@ -231,16 +231,61 @@
 onfig;%0A%0A
+import static com.threerings.crowd.Log.log;%0A%0A
 /**%0A * A
@@ -350,19 +350,16 @@
 ne in it
-%0A *
  where t
@@ -379,16 +379,19 @@
 with one
+%0A *
  another
@@ -653,17 +653,17 @@
         
-L
+l
 og.info(
@@ -926,17 +926,17 @@
         
-L
+l
 og.warni
@@ -972,41 +972,10 @@
 er.%22
-);%0A            Log.logStackTrace(
+, 
 e);%0A

Use new logging API.