SyslogClient Class
Namespace: Rebex.Net
Assembly: Rebex.Syslog.dll (version 7.0.9147)
Represents a syslog client, which can send syslog messages to a syslog server.
Syntax
public class SyslogClient : IDisposable, IAsyncDisposable
Inherited Members
Constructors
Name | Description |
---|---|
Syslog |
Initializes an instance of the Syslog |
Fields
Name | Description |
---|---|
Default |
Default syslog port number (514). |
Default |
Default syslog port number for TLS connection (6514). |
Properties
Name | Description |
---|---|
Log |
Gets or sets the Log |
Settings | Gets or sets the client settings. |
Timeout | Gets or sets the timeout for underlying socket. |
Methods
Name | Description |
---|---|
Close() | Closes the connection and releases all associated resources. |
Close |
Asynchronously closes the connection and releases all associated resources. |
Connect(String, Syslog |
Connects the client to the specified syslog server. |
Connect(String, Int32, Syslog |
Connects the client to the specified syslog server. |
Connect |
Connects the client to the specified syslog server. |
Send(Syslog |
Sends a message to the connected syslog server. |
Send(String, Syslog |
Sends a message to the connected syslog server. |
Send |
Sends a message to the connected syslog server. |
Send |
Sends a message to the connected syslog server. |
Events
Name | Description |
---|---|
Validating |
Occurs when a certificate provided by the remote end needs to be validated. |
Explicit Interface Implementations
Name | Description |
---|---|
IAsync |
Asynchronously closes the connection and releases all associated resources. |
IDisposable. |
Disposes the object. |