Click or drag to resize
SyslogMessage Constructor (NullableDateTimeOffset, Facility, Severity, String, String, String)
Initializes a new instance of the SyslogMessage class for sending a RFC 3164 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 message
)

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.
message
Type: SystemString
Message text.
Exceptions
ExceptionCondition
ArgumentNullException Missing hostName value.
See Also