public static string GetLogPath(string[] args, string defaultPath) { var properties = BaseProperties.GetProperties(args); if (properties == null) { return(defaultPath); } var logProperties = new LogBaseProperties(properties); return(logProperties.LogPath); }