Logging and threadding

2 views
Skip to first unread message

Oleg

unread,
Nov 26, 2007, 4:48:00 AM11/26/07
to spontaneous-desktop-grid
Hi,

I added couple of new tab panels (Activity panel and Log panel) that
should help tracking F2F activity. Everyone is encoureged to try to
make use of them ;)

Firstly, it's F2F Activity panel, which is supposed to show F2F
internal "threads", eg tasks, NAT requests, etc. Use
ActivityManager.getDefault().emitEvent(new ActivityEvent(myActivity,
ActivityEvent.Type.enumvalue)) and they appear on that panel. And
there may be threading issues, so if you update table too often and
experience strange behaviour it may be threading issues. Look into
ee.ut.f2f.core.Task code for example.

Secondly, we have logging anarchy in the code. I could not decide
which log infrastructure to use, so I copied SIP Logger to the
f2f.util.log package and wrapped Java standard logging
(java.util.logging). Everyone is encoureged to use this f2f logging.
There are currently "3 levels" of debugging at the moment: info, debug
and trace, where the last level is not shown on the Log panel.

NB! to actually see logging messages you should add
ee.ut.f2f.level = FINEST
to your logging.properties fille.

Any suggestions, complaints, protests are welcome,
Oleg
Reply all
Reply to author
Forward
0 new messages