How to delete a photo from a blog?
Network logging for Java desktop application
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > Java Programming > Network logging for Java desktop application 20 October 2007 07:17:06

  Top users: 
  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

Network logging for Java desktop application

Frank Harper 19 October 2007 18:41:15
 I have a java desktop application that is installed locally on users
machines via Java Web Start, and would like to centralize the logging to
facilitate diagnosing bugs.

The app uses the standard java logging framework that comes with J2SE.
Apparently with this logging framework the standard way to do network
logging is to use java.util.logging.S­ocketHandler. I couldn't find any
complete examples on the Web, and the documentation is completely mute about
what should be running on the server side to collect the information sent by
SocketHandler.

So, have any of you done network logging in Java, and what software did you
use? Did you use J2SE+SocketHandler,­ classic unix syslog, Log4J, or
something better/different? And in particular what software did you run on
the log server?

Thanks
Frank

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Vitor Buitoni 19 October 2007 20:06:12 permanent link ]
 Frank,

I recommend log4j, it's simple, flexible and powerful.

With log4j, you could use a SocketAppender:
http://logging.apac­he.org/log4j/1.2/api­docs/org/apache/log4­j/net/SocketAppender­.html

In this case, you would have to implement a Java application in the
server, in order to receive the serialized LoggingEvents and log them
locally the way you want.

Still with log4j, perhaps a more robust solution would be to send logs
to a JMS server (if you are familiar with JMS):
http://logging.apac­he.org/log4j/1.2/api­docs/org/apache/log4­j/net/JMSAppender.ht­ml


Vitor


Frank Harper escreveu:
I have a java desktop application that is installed locally on users
machines via Java Web Start, and would like to centralize the logging to
facilitate diagnosing bugs.
The app uses the standard java logging framework that comes with J2SE.
Apparently with this logging framework the standard way to do network
logging is to use java.util.logging.S­ocketHandler. I couldn't find any
complete examples on the Web, and the documentation is completely mute about
what should be running on the server side to collect the information sent by
SocketHandler.
So, have any of you done network logging in Java, and what software did you
use? Did you use J2SE+SocketHandler,­ classic unix syslog, Log4J, or
something better/different? And in particular what software did you run on
the log server?
Thanks
Frank
===================­================
This list is hosted by DevelopMentor® http://www.develop.­com
View archives and manage your subscription(s) at http://discuss.deve­lop.com

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
Peter Booth 20 October 2007 07:17:06 permanent link ]
 Do you really want to make your application's reliability and
performance
dependent on the health of the network logging mechanism? If

Call me conservative but I would much prefer to log locally and use a
decoupled mechanism for log file aggregation. Capistrano, for example
can make this trivial across OSes.

Peter

On Oct 19, 2007, at 10:41 AM, Frank Harper wrote:

I have a java desktop application that is installed locally on users
machines via Java Web Start, and would like to centralize the
logging to
facilitate diagnosing bugs.
The app uses the standard java logging framework that comes with J2SE.
Apparently with this logging framework the standard way to do network
logging is to use java.util.logging.S­ocketHandler. I couldn't find any
complete examples on the Web, and the documentation is completely
mute about
what should be running on the server side to collect the
information sent by
SocketHandler.
So, have any of you done network logging in Java, and what software
did you
use? Did you use J2SE+SocketHandler,­ classic unix syslog, Log4J, or
something better/different? And in particular what software did you
run on
the log server?
Thanks
Frank
===================­================
This list is hosted by DevelopMentor® http://www.develop.­com
View archives and manage your subscription(s) at http://

===================­================
This list is hosted by DevelopMentor® http://www.develop.­com

View archives and manage your subscription(s) at http://discuss.deve­lop.com

Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > Java Programming > Network logging for Java desktop application 20 October 2007 07:17:06

see also:
Happier Lyrics of the Day
eCost Again
Poll - Did you believe Sadaam was…
pass tests:
Тест - бяка
see also:
How to Convert All Videos to…
How to convert FLV videos and share…
A nice share:Put dvd and video on…

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .