public void WriteWarning(string format, params object[] args)
        {
            var formattedValue = string.Format(format, args);
            var value          = "Warn:         " + formattedValue;

            Console.WriteLine(value);
            logBuilder.AppendLine(value);
            WarnMessages.Add(formattedValue);
        }
示例#2
0
 public void Warn(string message)
 {
     WarnMessages.Add(message);
 }