• 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

java.util.logger -

 
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hallo

I use the logging mechanism from java, and I must admit it is preaty god. I have just a small problem, my application is a client server application and I find useful to get the log from the both layers (client and server) on the same location.In the other words for the client and the server the log files must be saved on the same location (by example on the server side in two different logs).
The Logger class is not serializable - so I can not just sent the log from the client to the server, so for this I think I need a special Haldler (or better a StreamHandler) that get the messages from the Logger ,transport them and at the end use the register Formater to format the log output.
My questions are :
1. I was right in my log speculations ?
2. If the 1 is correct then there are some already implemented class/solutions for this ?
3. There are also other solution for this problem ?
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are using a Unix-like platform, you could just export an NFS directory and mount it to both machines. This solution doesn't have anything to do with Java, but it would work.

Layne
 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That is true Layne, I am under linux and like file system I use reisefs, but to be onest I don't now how to do "export an NFS directory and mount it to both machines" can you be a little more explicit.
Thanks
reply
    Bookmark Topic Watch Topic
  • New Topic