C# Class Newtonsoft.Json.Serialization.DiagnosticsTraceWriter

Represents a trace writer that writes to the application's TraceListener instances.
Inheritance: ITraceWriter
显示文件 Open project: JamesNK/Newtonsoft.Json Class Usage Examples

Public Methods

Method Description
Trace ( TraceLevel level, string message, Exception ex ) : void

Writes the specified trace level, message and optional exception.

Private Methods

Method Description
GetTraceEventType ( TraceLevel level ) : TraceEventType

Method Details

Trace() public method

Writes the specified trace level, message and optional exception.
public Trace ( TraceLevel level, string message, Exception ex ) : void
level TraceLevel The at which to write this trace.
message string The trace message.
ex System.Exception The trace exception. This parameter is optional.
return void