Click or drag to resize

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
)

Parameters

logEvent
Type: NLogLogEventInfo
The log event to be used when calculating label and text to be written.

Return Value

Type: Message
The message to be sent.
Remarks
You may override this method in inheriting classes to provide services like encryption or message authentication.
See Also