Find the answer to your Linux question:
Results 1 to 2 of 2
Hi everyone! I am developing a socket server in Java that will run in a remote machine. Now I am testing in my local machine so when my Java program ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2009
    Posts
    104

    log file in Java


    Hi everyone!

    I am developing a socket server in Java that will run in a remote machine.

    Now I am testing in my local machine so when my Java program crashes I can see the log error in Eclipse. But in the remote machine I will not be able see the log.

    Can I configure in Java a log file?? so when my program crashes the log file contains a description of the error. That way, I can see that log file in the remote machine.

    Thank you very much!!

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,752
    Use log4j - it can log locally, remotely, or both I believe. DO NOT try to roll your own logger!
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •