C# Class System.Diagnostics.TraceListener

Inheritance: IDisposable
Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
Close ( ) : void
Dispose ( ) : void
Fail ( string message ) : void
Fail ( string message, string detailMessage ) : void
Flush ( ) : void
TraceData ( System eventCache, string source, System eventType, int id ) : void
TraceData ( System eventCache, string source, System eventType, int id, object data ) : void
TraceData ( TraceEventCache eventCache, String source, TraceEventType eventType, int id ) : void
TraceData ( TraceEventCache eventCache, String source, TraceEventType eventType, int id, object data ) : void
TraceEvent ( System eventCache, string source, System eventType, int id ) : void
TraceEvent ( System eventCache, string source, System eventType, int id, string message ) : void
TraceEvent ( TraceEventCache eventCache, String source, TraceEventType eventType, int id ) : void
TraceEvent ( TraceEventCache eventCache, String source, TraceEventType eventType, int id, string message ) : void
TraceTransfer ( TraceEventCache eventCache, String source, int id, string message, Guid relatedActivityId ) : void
TraceTransfer ( TraceEventCache eventCache, string source, int id, string message, Guid relatedActivityId ) : void
Write ( object o ) : void
Write ( object o, string category ) : void
Write ( string message ) : void
Write ( string message, string category ) : void
WriteLine ( object o ) : void
WriteLine ( object o, string category ) : void
WriteLine ( string message ) : void
WriteLine ( string message, string category ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void
GetSupportedAttributes ( ) : string[]
TraceListener ( )
TraceListener ( string name )
TraceListener ( ) : System
TraceListener ( string name ) : System
WriteIndent ( ) : void

Private Methods

Method Description
IsEnabled ( TraceOptions opts ) : bool
WriteFooter ( TraceEventCache eventCache ) : void
WriteHeader ( String source, TraceEventType eventType, int id ) : void

Method Details

Close() public method

public Close ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Fail() public method

public Fail ( string message ) : void
message string
return void

Fail() public method

public Fail ( string message, string detailMessage ) : void
message string
detailMessage string
return void

Flush() public method

public Flush ( ) : void
return void

GetSupportedAttributes() protected method

protected GetSupportedAttributes ( ) : string[]
return string[]

TraceData() public method

public TraceData ( System eventCache, string source, System eventType, int id ) : void
eventCache System
source string
eventType System
id int
return void

TraceData() public method

public TraceData ( System eventCache, string source, System eventType, int id, object data ) : void
eventCache System
source string
eventType System
id int
data object
return void

TraceData() public method

public TraceData ( TraceEventCache eventCache, String source, TraceEventType eventType, int id ) : void
eventCache TraceEventCache
source String
eventType TraceEventType
id int
return void

TraceData() public method

public TraceData ( TraceEventCache eventCache, String source, TraceEventType eventType, int id, object data ) : void
eventCache TraceEventCache
source String
eventType TraceEventType
id int
data object
return void

TraceEvent() public method

public TraceEvent ( System eventCache, string source, System eventType, int id ) : void
eventCache System
source string
eventType System
id int
return void

TraceEvent() public method

public TraceEvent ( System eventCache, string source, System eventType, int id, string message ) : void
eventCache System
source string
eventType System
id int
message string
return void

TraceEvent() public method

public TraceEvent ( TraceEventCache eventCache, String source, TraceEventType eventType, int id ) : void
eventCache TraceEventCache
source String
eventType TraceEventType
id int
return void

TraceEvent() public method

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

TraceListener() protected method

protected TraceListener ( )

TraceListener() protected method

protected TraceListener ( string name )
name string

TraceListener() protected method

protected TraceListener ( ) : System
return System

TraceListener() protected method

protected TraceListener ( string name ) : System
name string
return System

TraceTransfer() public method

public TraceTransfer ( TraceEventCache eventCache, String source, int id, string message, Guid relatedActivityId ) : void
eventCache TraceEventCache
source String
id int
message string
relatedActivityId Guid
return void

TraceTransfer() public method

public TraceTransfer ( TraceEventCache eventCache, string source, int id, string message, Guid relatedActivityId ) : void
eventCache TraceEventCache
source string
id int
message string
relatedActivityId Guid
return void

Write() public method

public Write ( object o ) : void
o object
return void

Write() public method

public Write ( object o, string category ) : void
o object
category string
return void

Write() public abstract method

public abstract Write ( string message ) : void
message string
return void

Write() public method

public Write ( string message, string category ) : void
message string
category string
return void

WriteIndent() protected method

protected WriteIndent ( ) : void
return void

WriteLine() public method

public WriteLine ( object o ) : void
o object
return void

WriteLine() public method

public WriteLine ( object o, string category ) : void
o object
category string
return void

WriteLine() public abstract method

public abstract WriteLine ( string message ) : void
message string
return void

WriteLine() public method

public WriteLine ( string message, string category ) : void
message string
category string
return void