Skip to main content
more to-the-point title; tag for the important aspects; removed fluff
Source Link
Gilles 'SO- stop being evil'
  • 865.5k
  • 205
  • 1.8k
  • 2.3k

Capturing java appnew output andafter deleting the output file

I'm runnig a java server on Debian with this command:

  java -jar myapp.jar [args] >> log.txt

Once I gzipped the log file to send it and then I realized the original file was gone, leaving me with only the .gzip.

Although I created the file manually (and also tried to unzip the original) the app didn't log anymore to that file. So my questions are: where does that log go after that? Is there any way to re-route the output log file without restarting the app (as it is a server, I'd rather not kill the process).

Any help will be very much appreciated.

Regards, Rodrigo

Capturing java app output and deleting the file

I'm runnig a java server on Debian with this command:

  java -jar myapp.jar [args] >> log.txt

Once I gzipped the log file to send it and then I realized the original file was gone, leaving me with only the .gzip.

Although I created the file manually (and also tried to unzip the original) the app didn't log anymore to that file. So my questions are: where does that log go after that? Is there any way to re-route the output log file without restarting the app (as it is a server, I'd rather not kill the process).

Any help will be very much appreciated.

Regards, Rodrigo

Capturing new output after deleting the output file

I'm runnig a java server on Debian with this command:

  java -jar myapp.jar [args] >> log.txt

Once I gzipped the log file to send it and then I realized the original file was gone, leaving me with only the .gzip.

Although I created the file manually (and also tried to unzip the original) the app didn't log anymore to that file. So my questions are: where does that log go after that? Is there any way to re-route the output log file without restarting the app (as it is a server, I'd rather not kill the process).

Source Link

Capturing java app output and deleting the file

I'm runnig a java server on Debian with this command:

  java -jar myapp.jar [args] >> log.txt

Once I gzipped the log file to send it and then I realized the original file was gone, leaving me with only the .gzip.

Although I created the file manually (and also tried to unzip the original) the app didn't log anymore to that file. So my questions are: where does that log go after that? Is there any way to re-route the output log file without restarting the app (as it is a server, I'd rather not kill the process).

Any help will be very much appreciated.

Regards, Rodrigo