If logfile does not exist - try to create it instead of throw exception. Trows exceptionon failure to create logfile.