The following tables list the members exposed by XTrace.

Public Constructors

Public ConstructorsXTrace Constructor()Create a new instance of the XTrace class.

Public Properties

Public PropertiesAutoFlushGets or sets whether Flush should be called on the Listeners after every write.
Public PropertiesIndentLevelGets or sets the indent level.
Public PropertiesIndentSizeGets or sets the number of spaces in an indent.
Public PropertiesLevelGets or sets the trace level.
Public PropertiesListenersGets the collection of listeners that is monitoring the trace output.
Public PropertiesSourceFiltersGets or sets the source object filter.

Public Fields

Public FieldsStatic MemberDefaultThe default XTrace that for all classes that implement the ITraceSource interface.

Public Methods

Public MethodsCloseFlushes the output buffer, and then closes the Listeners.
Public MethodsFlushFlushes the output buffer, and causes buffered data to be written to the Listeners.
Public MethodsHasListenersGets a boolean value indicating whether at least one listener has been attached.
Public MethodsIndentIncreases the current IndentLevel by one.
Public MethodsShouldLogOverloaded. Indicates whether futher log message with severity lesser or equal to the specicifed level should be logged.
Public MethodsUnindentDecreases the current IndentLevel by one.
Public MethodsStatic MemberWriteLineOverloaded. Writes a category name and the value of the object's ToString method to the trace listeners in the Listeners collection.

See Also