...
While in this compliant solution an IOException
is still possible, there is little that can be done when writing the data to the log file if the existence of the file itself is under question.
Consequently, this recommendation does not prevent a program from reopening a closed log file. If an IOException
results when doing so, it is likely that the log file was not properly protected using operating system level permissions.
...