This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.
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
Joined: Jan 31, 2003
Thank you Simon for your response. I will definitely take a look at them. Thanks, Payam.