EventLogTraceListener Members

Provides a simple listener that directs tracing or debugging output to an EventLog.

The following tables list the members exposed by the EventLogTraceListener type.

  Name Description
Public method EventLogTraceListener Overloaded. Initializes a new instance of the EventLogTraceListener class.

  Name Description
Public property Attributes  Gets the custom trace listener attributes defined in the application configuration file.(Inherited from TraceListener.)
Public property EventLog Gets or sets the event log to write to.
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 Overridden. Gets or sets the name of this EventLogTraceListener.
Public property TraceOutputOptions  Gets or sets the trace output options.(Inherited from TraceListener.)

(see also Protected Methods )
  Name Description
Public method Close Overridden. Closes the event log so that it no longer receives tracing or debugging output.
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  Releases all resources used by the TraceListener. (Inherited from TraceListener.)
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method Fail  Overloaded. Emits error messages to the listener you create when you implement the TraceListener class. (Inherited from TraceListener.)
Public method Flush  When overridden in a derived class, flushes the output buffer. (Inherited from TraceListener.)
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetLifetimeService  Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
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.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Public method TraceData Overloaded. Overridden. Writes trace data to the event log.
Public method TraceEvent Overloaded. Writes event trace information to the event log.
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 the event log for this instance.
Public method WriteLine Overloaded. Writes a message to the event log for this instance.

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method MemberwiseClone  Overloaded. (Inherited from MarshalByRefObject.)

Community Additions