logging name of File causes an exception if file is invalid.
Logging files