public static void TraceWarning(string format, params string[] args) { if (args.Length > 0) { args[0] = string.Concat(args[0], "#", ExperimentManager.GetCurrentExperiment(), "$", ExperimentManager.GetCurrentSourceVariation(), "%", CultureInfo.CurrentCulture.EnglishName); } System.Diagnostics.Trace.TraceWarning(format, args); }
public static void TraceInformation(string format, params string[] args) { if (args.Length > 0) { args[0] = string.Concat(args[0], "#", ExperimentManager.GetCurrentExperiment(), "$", ExperimentManager.GetCurrentSourceVariation(), "%", CultureInfo.CurrentCulture.EnglishName); } args = args.Select(e => e?.Replace(";", "&semi")).ToArray(); System.Diagnostics.Trace.TraceInformation(format, args); }