Page 1 of 1

How to Log In and Out Packets

Posted: 21 May 2020, 14:19
by coolboy714cp
Hey, can someone tell me how I can start logging in and out packets? This used to be possible, but now I'm not too sure.

http://docs2x.smartfoxserver.com/Gettin ... figuration
DEBUG: provides lots of details about each incoming/outgoing request including a binary dump of each packet. This level is recommended only for local debugging, it must be turned off for production otherwise it could impact the server performance and generate huge log files.
I tried doing this:
In order to change the logging level you can edit the {SFS2X}/config/log4j.properties and change this line (should be line 61):

Code: Select all

log4j.category.com.smartfoxserver=DEBUG,consoleAppender,fileAppender
But when I do that, I am not getting the packet dumps as expected.

Re: How to Log In and Out Packets

Posted: 21 May 2020, 14:32
by Lapo
Hello,
that is indeed the correct way to do it.
coolboy714cp wrote:But when I do that, I am not getting the packet dumps as expected.
Seems strange. Once you restart you should definitely see all the DEBUG level messages including the requests etc...

Thanks

Re: How to Log In and Out Packets

Posted: 24 May 2020, 03:11
by coolboy714cp
Hmm.. That was strange, at first I was only getting some debug messages, without the packet dumps, I restarted once more and I started getting the packet dumps. Thanks!