• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log4J and web start

 
Payam Fard
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
We have written a standalone swing application that uses Log4j to create some log files on the client's machine.
Now, we are thinking about distributing this application on the web. We were successful in having it run using Java web start 1.2.
We have the following problem:
These logs are no longer useful since each client downloads the jar file on his/her local disk and then runs the application locally and as a result each user writes to his/her own logs on his/her local disk. We are basically looking for a way to have a centralized log. This way all the user logs are getting written to a single log file (on the server?). We were wondering if there would be any good way of doing this. If we can accomplish this, then we do not have to even ask the users for full permissions to their local machine.
Any thoughts on this?
Thanks,
Payam.
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would basically need to write a custom appender (I think that's what they are called) that logs messages to a central place. Log4j comes with appenders for JDBC and JMS so perhaps they are worth looking at to solve your problem.
Simon
 
Payam Fard
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Simon for your response. I will definitely take a look at them.
Thanks,
Payam.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic