| NLogTraceListenerTraceEvent Method (TraceEventCache, String, TraceEventType, Int32, String, Object) |
Writes trace information, a formatted array of objects and event information to the listener specific output.
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public override void TraceEvent(
TraceEventCache eventCache,
string source,
TraceEventType eventType,
int id,
string format,
params Object[] args
)
Public Overrides Sub TraceEvent (
eventCache As TraceEventCache,
source As String,
eventType As TraceEventType,
id As Integer,
format As String,
ParamArray args As Object()
)
Dim instance As NLogTraceListener
Dim eventCache As TraceEventCache
Dim source As String
Dim eventType As TraceEventType
Dim id As Integer
Dim format As String
Dim args As Object()
instance.TraceEvent(eventCache, source,
eventType, id, format, args)
abstract TraceEvent :
eventCache : TraceEventCache *
source : string *
eventType : TraceEventType *
id : int *
format : string *
args : Object[] -> unit
override TraceEvent :
eventCache : TraceEventCache *
source : string *
eventType : TraceEventType *
id : int *
format : string *
args : Object[] -> unit
Parameters
- eventCache
- Type: System.DiagnosticsTraceEventCache
A TraceEventCache object that contains the current process ID, thread ID, and stack trace information. - source
- Type: SystemString
A name used to identify the output, typically the name of the application that generated the trace event. - eventType
- Type: System.DiagnosticsTraceEventType
One of the TraceEventType values specifying the type of event that has caused the trace. - id
- Type: SystemInt32
A numeric identifier for the event. - format
- Type: SystemString
A format string that contains zero or more format items, which correspond to objects in the args array. - args
- Type: SystemObject
An object array containing zero or more objects to format.
See Also