I am running a batch which generates separate text files(.txt) for separate country codes in corresponding folders. For audit purposes we happen to create log files in the same folder as .txt files. The issue is, on a certain day the log file and the .txt file were not generated and found that the disk space is full.
In such cases how can we audit this issue? Is there any way to capture the exception thrown by the Java program sue to disk space issue?