Where can I see the extension trace() info?

Post here your questions about the Java client / Android API for SFS2X

Moderators: Lapo, Bax

mani95lisa
Posts: 4
Joined: 06 Jun 2012, 08:42

Where can I see the extension trace() info?

Postby mani95lisa » 06 Jun 2012, 09:04

Hello
I'm a fresh java coder, could anybody tell me where can I see my java extension trace info?
Like the below:

Code: Select all

public void init() {
      trace("Zone extension starts!");
      addEventHandler(SFSEventType.USER_LOGIN, LoginEventHandler.class);
   }


Thanks for your time!
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Where can I see the extension trace() info?

Postby rjgtav » 06 Jun 2012, 15:42

Hello.
When you add some traces to your extension, you will see those messages on the server console.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
mani95lisa
Posts: 4
Joined: 06 Jun 2012, 08:42

Re: Where can I see the extension trace() info?

Postby mani95lisa » 07 Jun 2012, 01:53

Thanks for your reply. :D

I forget to use sfs2x.sh.

But now I encounter another problem, I listen USER_LOGIN and USER_JOIN_ZONE event in extension, but the UserLoginHandler doesn't work, the UserJoinZoneHandler work fine.

Could you please give me some suggestion about this? I'm confused.

Thanks!
mani95lisa
Posts: 4
Joined: 06 Jun 2012, 08:42

Re: Where can I see the extension trace() info?

Postby mani95lisa » 07 Jun 2012, 02:05

I find it, I forget to set the zone use custom login.

Thanks.

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 23 guests