Server logging

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
ericheimburg
Posts: 26
Joined: 18 Mar 2010, 07:25

Server logging

Post by ericheimburg »

How do we write to the log? I know about the trace() function in extensions, but I need to log from within objects that don't have access to the extension object (e.g. in a PlayerIdGenerator, which can get spontaneously created by the server whenever it feels like, with no extension provided).

I assume there's some way to get the standard Logger.getLogger() to work with SFS, but I can't figure out what voodoo would be necessary. Can somebody help?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Paolo Bax
The SmartFoxServer Team
ericheimburg
Posts: 26
Joined: 18 Mar 2010, 07:25

Post by ericheimburg »

Ah, thanks :) I did search for this, but didn't search far enough.
Post Reply