Meaningless Drivel is fun!*
The moose likes Other Open Source Projects and the fly likes Log4J and web start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Log4J and web start" Watch "Log4J and web start" New topic
Author

Log4J and web start

Payam Fard
Ranch Hand

Joined: Jan 31, 2003
Posts: 73
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

Joined: May 10, 2000
Posts: 1913
    
    6
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

Joined: Jan 31, 2003
Posts: 73
Thank you Simon for your response. I will definitely take a look at them.
Thanks,
Payam.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Log4J and web start
 
Similar Threads
Log4J and web start
Log4j created file not able to delete while testing my application??
Reading logs from Unix server
How to disable logging in server.log
How do i create a log file