Recently, I'm working on this app that will search my local directory for files, and upload each of them to a server. I was also told that I need to output the log in a text file for future reference.
Brief explanation on how my app works right now:
-I have a shell script that CDs into all my directories where files are present
-when it finds a file, it will call my java application, which is used to upload those files
-when its done, my shell script carries on in finding other files to upload.
So I got the log to output to a file, which is done in my java app. However, I'm getting a log file for every file that I upload, since I'm calling my java app each time I find a file.
So I was wondering if there is a way to continue the logging in a text file, so that everytime I call the java app, it will continue to log the output in the same file. This way, I will have only one large log file instead of millions of small log files.
Thanks a lot in advance.
awong
[Edit: Typo]