Click or drag to resize
SyslogMessage Constructor (NullableDateTimeOffset, Facility, Severity, String, String, String, String, String, StructuredDataElement)
Initializes a new instance of the SyslogMessage class for sending a RFC 5424 message.

Namespace: SyslogNet.Client
Assembly: SyslogNet.Client.Core (in SyslogNet.Client.Core.dll) Version: 0.4.0.0
Syntax
public SyslogMessage(
	Nullable<DateTimeOffset> dateTimeOffset,
	Facility facility,
	Severity severity,
	string hostName,
	string appName,
	string procId,
	string msgId,
	string message,
	params StructuredDataElement[] structuredDataElements
)

Parameters

dateTimeOffset
Type: SystemNullableDateTimeOffset
Message timestamp.
facility
Type: SyslogNet.ClientFacility
Message facility.
severity
Type: SyslogNet.ClientSeverity
Message severity.
hostName
Type: SystemString
Host name.
appName
Type: SystemString
Application name.
procId
Type: SystemString
Process identifier.
msgId
Type: SystemString
Message identifier.
message
Type: SystemString
Message text.
structuredDataElements
Type: SyslogNet.ClientStructuredDataElement
Structured data.
Exceptions
ExceptionCondition
ArgumentNullException Missing hostName or structuredDataElements value.
See Also