• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Log4J and web start

 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you Simon for your response. I will definitely take a look at them.
Thanks,
Payam.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic