2using System.Security.Cryptography.X509Certificates;
3using System.Threading.Tasks;
29 this.client =
new SyslogClient(Host, Port, Tls, LocalHostName, AppName, Separation);
47 this.client =
new SyslogClient(Host, Port, Certificate, LocalHostName, AppName, Separation);
63 string.Empty,
string.Empty,
EventLevel.Medium,
string.Empty,
76 if (!(this.client is
null))
82 await base.DisposeAsync();
Class representing an event.
void Avoid(IEventSink EventSink)
If the event sink EventSink should be avoided when logging the event.
Base class for event sinks.
Static class managing the application event log. Applications and services log events on this static ...
static async void Event(Event Event)
Logs an event. It will be distributed to registered event sinks.
virtual string ObjectID
Object ID, used when logging events.
Syslog over TCP/IP client application, as defined in RFCs 5224, 5425, 6587: https://datatracker....
Task Send(Event Event)
Sends an event to the syslog server.
void UpdateCertificate(X509Certificate Certificate)
Updates the certificate used in mTLS negotiation.
async Task DisposeAsync()
Disposes the syslog client.
Event sink that sends events to a Syslog server using the Syslog protocol.
SyslogEventSink(string Host, int Port, bool Tls, string LocalHostName, string AppName, SyslogEventSeparation Separation, string ObjectID)
Event sink that sends events to a Syslog server using the Syslog protocol.
override async Task DisposeAsync()
IDisposableAsync.DisposeAsync()
SyslogEventSink(string Host, int Port, X509Certificate Certificate, string LocalHostName, string AppName, SyslogEventSeparation Separation, string ObjectID)
Event sink that sends events to a Syslog server using the Syslog protocol.
override async Task Queue(Event Event)
Queues an event to be output.
void UpdateCertificate(X509Certificate Certificate)
Updates the certificate used in mTLS negotiation.
Interface for Mutual TLS (mTLS) Clients or TLS servers.
SyslogEventSeparation
How events are separated in the Syslog event stream.