 | 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.ClientAssembly: SyslogNet.Client.Core (in SyslogNet.Client.Core.dll) Version: 0.4.0.0
Syntaxpublic SyslogMessage(
Nullable<DateTimeOffset> dateTimeOffset,
Facility facility,
Severity severity,
string hostName,
string appName,
string procId,
string msgId,
string message,
params StructuredDataElement[] structuredDataElements
)
Public Sub New (
dateTimeOffset As Nullable(Of DateTimeOffset),
facility As Facility,
severity As Severity,
hostName As String,
appName As String,
procId As String,
msgId As String,
message As String,
ParamArray structuredDataElements As StructuredDataElement()
)
public:
SyslogMessage(
Nullable<DateTimeOffset> dateTimeOffset,
Facility facility,
Severity severity,
String^ hostName,
String^ appName,
String^ procId,
String^ msgId,
String^ message,
... array<StructuredDataElement^>^ structuredDataElements
)
new :
dateTimeOffset : Nullable<DateTimeOffset> *
facility : Facility *
severity : Severity *
hostName : string *
appName : string *
procId : string *
msgId : string *
message : string *
structuredDataElements : StructuredDataElement[] -> SyslogMessage
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
See Also