public string GetLogs() { foreach (var targetConfig in TargetConfigs) { var asLogStorage = targetConfig.Target as ILogStorage; if (asLogStorage != null) { return asLogStorage.GetLastLogs(); } } return string.Empty; }