Added logging in FileWrapper