New Alpha version of OGF and a nice log translation between JME logging (JUL) and log4j

As of yesterday, the new alpha version for OGF is up. It currently connects to my personal server, which runs on my laptop. This means it is on when I’m working on the laptop and not much longer. I will see to it that a more stable platform will be availlable soon. I’ll update when that’s done. The new alpha version can be downloaded through the OGF google code page, http://code.google.com/p/open-game-finder/. Current features are:


  • registration

  • login

  • avatar system

  • content cache

  • lobby chat room



for the next alpha version the following features are planned:

  • Admin module

  • Multiple rooms

  • Game dependency

  • pop-menus in chat



The admin module will contain the following:

  • Statistics

  • register game

  • ban players by name/ip



Aside from that, I've setup 2 classes which enable redirecting the JME and Nifty loggin to log4j. JME and Nifty both use the java.util.logging framework. OGF uses log4j. I needed a way to handle the messages meant for java.util.logging with log4j. I have come up with 2 classes to make this happen.
The first is a Handrler class. The second is a configurator. The second class is the one you use to set this up.
[java]
ConfigureJulFromLog4j cjfl4j = new ConfigureJulFromLog4j();
try {
cjfl4j.configure();
} catch (FileNotFoundException ex) {
logger.error("unable to configure JUL form Log4J. JUL messages will not be logged.", ex);
} catch (IOException ex) {
logger.error("unable to configure JUL form Log4J. JUL messages will not be logged.", ex);
}
[/java]

Here, you first instantiate the ConfigureJulFromLog4j and then tell it to start configuring. After this is done, the java.util.logger messages will be redirectod to you log4j logging. This gives you a single location where to configure your logging.

The ConfigureJulFromLog4j can be found in my Tools.jar. This jar file can either be downloaded from http://repo.ractoc.com/repo through maven or can be downloaded directly from http://repo.ractoc.com/repo/com/ractoc/Tools/1.0/


This has been keeping me busy the past few weeks / monghts. And we are not stopping yet.
After OGF Alpha 2 the work will really begin and for that I really need multiplayer games to start implementing OGF. So if y ou're interested, let me know and we can start working together to make it happen.

Mark