private static void VerifyTargetDirectory() { if (LogDirectory != null) { LogDirectory.Refresh(); if (!LogDirectory.Exists) { LogDirectory.Create(); } } }