private bool IsLogFileEmpty(string path) { var fileInfo = new FileInfo(path); return (!fileInfo.Exists || fileInfo.Length == 0); }