static void LogFindResults(ActiveLicenseFindResult result) { if (Logger.IsDebugEnabled) { var report = new StringBuilder("Looking for license in the following locations:"); foreach (var item in result.Report) { report.NewLine(item); } Logger.Debug(report.ToString()); } Logger.Info(string.Join(Environment.NewLine, result.SelectedLicenseReport)); #if REGISTRYLICENSESOURCE if (result.Location.StartsWith("HKEY_")) { Logger.Warn("Reading license information from the registry has been deprecated and will be removed in version 8.0. See the documentation for more details."); } #endif #if APPCONFIGLICENSESOURCE if (result.Location.StartsWith("app config")) { Logger.Warn("Reading license information from the app config file has been deprecated and will be removed in version 8.0. See the documentation for more details."); } #endif }
static void LogFindResults(ActiveLicenseFindResult result) { var report = new StringBuilder(); if (debugLoggingEnabled) { report.AppendLine("Looking for license in the following locations:"); foreach (var item in result.Report) { report.AppendLine(item); } Logger.Debug(report.ToString()); } else { foreach (var item in result.SelectedLicenseReport) { report.AppendLine(item); } Logger.Info(report.ToString()); } }