| MessageQueueTargetPrepareMessage Method |
Prepares a message to be sent to the message queue.
Namespace:
NLog.Targets
Assembly:
NLog.MSMQ (in NLog.MSMQ.dll) Version: 5.3.1+40400fa5f822c8a012031d98e17482db9dd5fb65
Syntax protected virtual Message PrepareMessage(
LogEventInfo logEvent
)
Protected Overridable Function PrepareMessage (
logEvent As LogEventInfo
) As Message
Dim logEvent As LogEventInfo
Dim returnValue As Message
returnValue = Me.PrepareMessage(logEvent)
abstract PrepareMessage :
logEvent : LogEventInfo -> Message
override PrepareMessage :
logEvent : LogEventInfo -> Message
Parameters
- logEvent
- Type: NLogLogEventInfo
The log event to be used when calculating label and text to be written.
Return Value
Type:
MessageThe message to be sent.
Remarks
You may override this method in inheriting classes
to provide services like encryption or message
authentication.
See Also