9 [CollectionName(
"EventLog")]
11 [ArchivingTime(nameof(ArchiveDays))]
13 [Index(
"Object",
"Timestamp")]
14 [Index(
"Actor",
"Timestamp")]
15 [Index(
"EventId",
"Timestamp")]
16 [Index(
"Facility",
"Timestamp")]
17 [Index(
"Type",
"Timestamp")]
20 private Guid objectId = Guid.Empty;
21 private DateTime timestamp = DateTime.MinValue;
24 private string message =
string.Empty;
25 private string obj =
string.Empty;
26 private string actor =
string.Empty;
27 private string eventId =
string.Empty;
28 private string module =
string.Empty;
29 private string facility =
string.Empty;
30 private string stackTrace =
string.Empty;
65 for (i = 0; i < c; i++)
83 set => this.objectId = value;
91 get => this.timestamp;
92 set => this.timestamp = value;
101 set => this.type = value;
111 set => this.level = value;
120 set => this.message = value;
131 string s = this.message.Trim();
132 int i = s.IndexOf(
'\n');
133 int j = s.IndexOf(
'\r');
137 else if (j >= 0 && j < i)
143 return s.Substring(0, i).TrimEnd();
153 set => this.obj = value;
162 set => this.actor = value;
171 set => this.eventId = value;
179 get => this.facility;
180 set => this.facility = value;
186 [DefaultValueStringEmpty]
190 set => this.module = value;
196 [DefaultValueStringEmpty]
199 get => this.stackTrace;
200 set => this.stackTrace = value;
210 set => this.tags = value;
Class representing an event.
string Message
Free-text event message.
EventType Type
Type of event.
string Object
Object related to the event.
EventLevel Level
Event Level.
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.
Class representing a persisted event.
string Object
Object related to the event.
EventLevel Level
Event Level.
string Message
Free-text event message.
override string ToString()
DateTime Timestamp
Timestamp of event.
string Actor
Actor responsible for the action causing the event.
string Module
Module where the event is reported.
string StackTrace
Stack Trace of event.
string EventId
Computer-readable Event ID identifying type of even.
int ArchiveDays
Number of days to archive event.
EventType Type
Type of event.
string MessageFirstRow
First row of Message.
PersistedEvent(Event Event)
Class representing a persisted event.
string Facility
Facility can be either a facility in the network sense or in the system sense.
PersistedTag[] Tags
Variable set of tags providing event-specific information.
PersistedEvent()
Class representing a persisted event.
Creates an even sink that stores incoming (logged) events in the local object database,...
Class representing a persisted tag.
TypeNameSerialization
How the type name should be serialized.