4using System.Threading.Tasks;
22 : base(Guid.NewGuid().ToString())
38 StringBuilder sb =
new StringBuilder();
43 this.Append(sb,
"Actor",
Event.
Actor, ref First);
51 foreach (KeyValuePair<string, object> P
in Event.
Tags)
52 this.Append(sb, P.Key, P.Value?.ToString(), ref First);
55 string Message = sb.ToString();
81 return Task.CompletedTask;
84 private void Append(StringBuilder sb,
string Key,
string Value, ref
bool First)
86 if (!
string.IsNullOrEmpty(Value))
Class representing an event.
string Message
Free-text event message.
EventType Type
Type of event.
string Object
Object related to the event.
string Actor
Actor responsible for the action causing the event.
string Module
Module where the event is reported.
DateTime Timestamp
Timestamp of event.
KeyValuePair< string, object >[] Tags
Variable set of tags providing event-specific information.
string EventId
Computer-readable Event ID identifying type of even.
string Facility
Facility can be either a facility in the network sense or in the system sense.
string StackTrace
Stack Trace of event.
Base class for event sinks.
Event sink that forwards logged events to a sniffer.
EventSinkToSniffer(ISniffer Sniffer)
Event sink that forwards logged events to a sniffer.
override Task Queue(Event Event)
Queues an event to be output.
ISniffer Sniffer
Recipient sniffer.
Interface for sniffers. Sniffers can be added to ICommunicationLayer classes to eavesdrop on communic...