C# Class Thinktecture.ServiceModel.Tracing.ColorConsoleTraceListener

Inheritance: System.Diagnostics.ConsoleTraceListener
Show file Open project: ChristianWeyer/Thinktecture.ServiceModel

Public Methods

Method Description
ColorConsoleTraceListener ( ) : System

Initializes a new instance of the ColorConsoleTraceListener class.

TraceEvent ( TraceEventCache eventCache, string source, TraceEventType eventType, int id, string message ) : void

Writes trace information, a message, and event information to the listener specific output.

Private Methods

Method Description
getEventColor ( TraceEventType eventType, ConsoleColor defaultColor ) : ConsoleColor

Method Details

ColorConsoleTraceListener() public method

Initializes a new instance of the ColorConsoleTraceListener class.
public ColorConsoleTraceListener ( ) : System
return System

TraceEvent() public method

Writes trace information, a message, and event information to the listener specific output.
public TraceEvent ( TraceEventCache eventCache, string source, TraceEventType eventType, int id, string message ) : void
eventCache System.Diagnostics.TraceEventCache A object that contains the current process ID, thread ID, and stack trace information.
source string A name used to identify the output, typically the name of the application that generated the trace event.
eventType TraceEventType One of the values specifying the type of event that has caused the trace.
id int A numeric identifier for the event.
message string A message to write.
return void