Does your task have to be completed in the foreground? You can't log everything if you do it in the foreground. There could be something very simple mistyped. Do you have screen shots? Also, can the system or user access that path you are trying to use?