private string FormatLoggingData(LoggingData[] loggingData) { StringBuilder sb = new StringBuilder(); foreach (var item in loggingData) { sb.AppendLine(item.Name + ": " + item.Value); } return sb.ToString(); }
public void LogError(LoggingData[] loggingData, Exception exception) { Console.WriteLine("Error" + Environment.NewLine + FormatLoggingData(loggingData)); Console.WriteLine(exception.Message); }
public void LogSuccess(LoggingData[] loggingData) { Console.WriteLine("Success" + Environment.NewLine + FormatLoggingData(loggingData)); }
public ConstantMethodLoggingDataExtractor(LoggingData[] constantData) { this.constantData = constantData; }