예제 #1
0
 /// <summary>
 /// Returns a <see cref="System.String" /> that represents this instance.
 /// </summary>
 /// <returns>A <see cref="System.String" /> that represents this instance.</returns>
 public override string ToString()
 {
     return(String.Format("Trace: {0}, Error {1} {2}", TraceLevel, BuildError.ToString(), Message));
 }
예제 #2
0
 private TraceMessage(BuildError buildError, TraceEventType traceLevel, string message)
 {
     BuildError = buildError;
     TraceLevel = traceLevel;
     Message    = message;
 }
예제 #3
0
 /// <summary>
 /// creates new <see cref="TraceMessage" /> to be used for diagnostic purpose
 /// </summary>
 /// <param name="error">The <see cref="BuildError"/> to be added to the <see cref="TraceMessage"/>.</param>
 /// <param name="message">The new <see cref="TraceMessage" /> containing the <paramref name="message" />.</param>
 /// <returns>The new <see cref="TraceMessage" /> diagnostic message.</returns>
 public static TraceMessage BuildErrorTraceMessage(BuildError error, string message)
 {
     return(new TraceMessage(error, TraceEventType.Information, message));
 }