Java Logging

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
willf
Posts: 14
Joined: 01 May 2010, 18:44

Java Logging

Post by willf »

Hi i have a few questoins regarding the logging.

Are there multiple levels of "trace"?

There isn't any way to get my SmartfoxServer.log.log logs into the trace window for extensions right?

Also for using logging is there a way to use parameter substition :
SmartFoxServer.log.log(Level.INFO,"hi {0} ", new Object[]{"there."});
outputs:
hi {0} instead of hi there.

Thanks
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Are there multiple levels of "trace"?
No, there is one level.
There isn't any way to get my SmartfoxServer.log.log logs into the trace window for extensions right?
No, only traces do that. Otherwise the AdminTool would be flooded.
Also for using logging is there a way to use parameter substition :
SmartFoxServer.log.log(Level.INFO,"hi {0} ", new Object[]{"there."});
outputs:
hi {0} instead of hi there.
Yes, use String.format or String.printf from the JDK5
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply