ConsoleTraceListener Members

Directs tracing or debugging output to either the standard output or the standard error stream.

The ConsoleTraceListener type exposes the following members.

  NameDescription
Public method ConsoleTraceListener Overloaded. Initializes a new instance of the ConsoleTraceListener class.
Top

  NameDescription
Public method Close Closes the Writer so that it no longer receives tracing or debugging output. (Inherited from TextWriterTraceListener.)
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Dispose Infrastructure. Overloaded. Disposes this TextWriterTraceListener object.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Fail Overloaded. Emits error messages to the listener you create when you implement the TraceListener class.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Flush Flushes the output buffer for the Writer. (Inherited from TextWriterTraceListener.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetSupportedAttributes Gets the custom attributes supported by the trace listener. (Inherited from TraceListener.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone Overloaded.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TraceData Overloaded. Writes trace data to the listener specific output.
Public method TraceEvent Overloaded. Writes trace and event information to the listener specific output.
Public method TraceTransfer Writes trace information, a message, a related activity identity and event information to the listener specific output. (Inherited from TraceListener.)
Public method Write Overloaded. Writes a message to this instance's Writer.
Protected method WriteIndent Writes the indent to the listener you create when you implement this class, and resets the NeedIndent property to false. (Inherited from TraceListener.)
Public method WriteLine Overloaded. Writes a message to this instance's Writer followed by a line terminator.
Top

  NameDescription
Public property Attributes Gets the custom trace listener attributes defined in the application configuration file. (Inherited from TraceListener.)
Public property Filter Gets and sets the trace filter for the trace listener. (Inherited from TraceListener.)
Public property IndentLevel Gets or sets the indent level. (Inherited from TraceListener.)
Public property IndentSize Gets or sets the number of spaces in an indent. (Inherited from TraceListener.)
Public property IsThreadSafe Gets a value indicating whether the trace listener is thread safe. (Inherited from TraceListener.)
Public property Name Gets or sets a name for this TraceListener. (Inherited from TraceListener.)
Protected property NeedIndent Gets or sets a value indicating whether to indent the output. (Inherited from TraceListener.)
Public property TraceOutputOptions Gets or sets the trace output options. (Inherited from TraceListener.)
Public property Writer Gets or sets the text writer that receives the tracing or debugging output. (Inherited from TextWriterTraceListener.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft