Logging Incoming/outgoing messages

Post here your suggestions for new possible features in SmartFoxServer.

Moderators: Lapo, Bax

Post Reply
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Logging Incoming/outgoing messages

Post by BigFIsh »

If you turn on these:
<DebugIncomingMessages>true</DebugIncomingMessages>
<DebugOutGoingMessages>true</DebugOutGoingMessages>

it will log to both console and log files. It could be nice to have an separate option that allows logging outgoing and/or incoming messages to log files regardless to outputting to console.

That way I can check my console for serious warnings, and check my log files for incoming and outgoing messages (during beta testing)
Smartfox's forum is my daily newspaper.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Yeah, most of this problem is related with the JDK logging framework which I have to admit sucks pretty badly when compared to some other well known alternatives ( i.e. log4j )

Next major version is using log4j and a vastly refactored logging system.
Lapo
--
gotoAndPlay()
...addicted to flash games
Nebulous
Posts: 13
Joined: 30 Jul 2009, 21:18

Post by Nebulous »

It might also be nice if you could also change the logging level of the "DATA IN" and "DATA OUT" messages. INFO seems pretty high, causing a bunch of messages which can get in the way of debugging server extensions.
Post Reply