[This is preliminary documentation and is subject to change.]

Writes the specified diagnostic message.

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 2.0.1.0

Syntax

C#
public void Log(
	Type wrapperType,
	LogEventInfo logEvent
)
Visual Basic (Declaration)
Public Sub Log ( _
	wrapperType As Type, _
	logEvent As LogEventInfo _
)
Visual Basic (Usage)
Dim instance As Logger
Dim wrapperType As Type
Dim logEvent As LogEventInfo

instance.Log(wrapperType, logEvent)

Parameters

wrapperType
Type: Type
The name of the type that wraps Logger.
logEvent
Type: NLog..::.LogEventInfo
Log event.

See Also