trace() in extension not appearing in admintool log

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

roocell
Posts: 29
Joined: 10 Jun 2009, 20:12

trace() in extension not appearing in admintool log

Postby roocell » 25 Aug 2009, 17:15

the user doc says

Outputs the message to the SmartFoxServer console and to the Admininistrator Tool.
It can be useful for remote debugging when developing Extensions.


I get the trace log in the console, but not in the adminTool logs.
Is there something I have misconfigured ?
Snowmane
Posts: 18
Joined: 18 Jul 2009, 16:36
Location: Colorado Springs, CO, USA

Postby Snowmane » 25 Aug 2009, 18:32

There are two possible issues:

1) You have set <ExtensionRemoteDebug> to false in your server config (this defaults to true)

2) You are not using the Pro version of SmartFoxServer. Trace debugging is only enabled in the Pro version.

Take a look at the Smartfox Documentation, Section 2.1: Server Configuration - The Basics
Last edited by Snowmane on 25 Aug 2009, 18:49, edited 1 time in total.
roocell
Posts: 29
Joined: 10 Jun 2009, 20:12

Postby roocell » 25 Aug 2009, 18:40

both of those conditions are true for me.
Snowmane
Posts: 18
Joined: 18 Jul 2009, 16:36
Location: Colorado Springs, CO, USA

Postby Snowmane » 25 Aug 2009, 19:16

:oops: I thought you were having trouble with the trace statement not showing in the admin tool, but now I see it's a logging problem.

Have you tried setting your config.xml <FileLoggingLevel> to FINEST?
roocell
Posts: 29
Joined: 10 Jun 2009, 20:12

Postby roocell » 25 Aug 2009, 19:21

i already had these settings have

<FileLoggingLevel>FINEST</FileLoggingLevel>
<ConsoleLoggingLevel>INFO</ConsoleLoggingLevel>
<ExtensionRemoteDebug>true</ExtensionRemoteDebug>


should i try INFO ?
does the trace statement show up in the adminTool somewhere else?
I assumed the statement in the docs meant the log (which is viewed through the adminTool).
Snowmane
Posts: 18
Joined: 18 Jul 2009, 16:36
Location: Colorado Springs, CO, USA

Postby Snowmane » 25 Aug 2009, 19:29

Well, you got me stumped. I guess we'll have to wait for Lapo to respond. Sorry, wish I could have helped you out.
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 26 Aug 2009, 07:41

I am stumped too :(
That feature simply works, if those settings are right there's no good reason why it should not work.

Is your extension at Zone Level or Room level?
Also which server version do you use?
Lapo
--
gotoAndPlay()
...addicted to flash games
roocell
Posts: 29
Joined: 10 Jun 2009, 20:12

Postby roocell » 26 Aug 2009, 11:46

just to be sure I'm looking in the right spot - it's supposed to show up in the log in the adminTool?

i'm using Pro 1.6.6

here's my zone config
<Zones>

<Zone name="zone1" emptyNames="true">
<Extensions>
<extension name="srv" className="ServerRoomVars.as" type="script" />
</Extensions>
<AutoReloadExtensions>true</AutoReloadExtensions>
<Rooms>
<Room name="The Entrance" maxUsers="100" isPrivate="false" isTemp="false" autoJoin="true" />




</Rooms>
</Zone>
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 26 Aug 2009, 12:58

Yes, correct.
But not just that, you have to select the Extension View from the drop down and select the extension that you want to monitor.

If we talk about a Zone Level extension you need to first select the Zone in the Zone Browser. If it's a Room extension, then you also need to choose the proper Room.
Lapo

--

gotoAndPlay()

...addicted to flash games
roocell
Posts: 29
Joined: 10 Jun 2009, 20:12

Postby roocell » 26 Aug 2009, 13:06

oh ok. thanks for the help - it's just my misunderstanding.
i thought it was in the logs (the man tab of the adminTool).

maybe the documentation on the trace() function could be explained a little better.

Outputs the message to the SmartFoxServer console and to the Admininistrator Tool.
It can be useful for remote debugging when developing Extensions.


could be

Outputs the message to the SmartFoxServer console and to the Admininistrator Tool (zone browser->extension view->trace window).
It can be useful for remote debugging when developing Extensions.
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 26 Aug 2009, 13:25

Actually there is an entire chapter of the docs devoted to Extension monitoring: http://www.smartfoxserver.com/docs/docP ... anager.htm
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Carl Lydon
Posts: 298
Joined: 12 Nov 2007, 16:15
Location: NYC
Contact:

Re: trace() in extension not appearing in admintool log

Postby Carl Lydon » 24 Nov 2015, 22:11

whats' the new url for that Lapo?

Your current link is dead.
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: trace() in extension not appearing in admintool log

Postby Lapo » 25 Nov 2015, 07:55

Yep, the SFS1.x doc has been relocated to this url (when we updated our website)
http://www.smartfoxserver.com/docs/1x/

See --> Section 3

cheers
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 84 guests