SyslogClient.SendAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Syslog.dll (version 7.0.9119)
SendAsync(SyslogMessage)
Sends a message to the connected syslog server.
Declaration
public Task SendAsync(SyslogMessage message)
Parameters
Type | Name | Description |
---|---|---|
SyslogMessage | message | A syslog message to be sent. |
Returns
Type | Description |
---|---|
Task |
SendAsync(String, SyslogSeverity, SyslogFacility)
Sends a message to the connected syslog server.
Declaration
public Task SendAsync(string message, SyslogSeverity severity = SyslogSeverity.Informational, SyslogFacility facility = SyslogFacility.User)
Parameters
Type | Name | Description |
---|---|---|
String | message | A message to be sent. |
SyslogSeverity | severity | Message severity. |
SyslogFacility | facility | Message facility. |
Returns
Type | Description |
---|---|
Task |