-
Notifications
You must be signed in to change notification settings - Fork 0
6c72e1df 4ea3 b1be bdad 18439a0e663e
Axel Kesseler edited this page Mar 1, 2023
·
1 revision
Adds field timestamp
to the string builder.
Namespace: Plexdata.LogWriter.Internals.Formatters
Assembly: Plexdata.LogWriter.Abstraction (in Plexdata.LogWriter.Abstraction.dll) Version: 1.0.7.1
C#
private void AddTimestamp(
StringBuilder builder,
DateTime timestamp,
char split
)
- builder
- Type: System.Text.StringBuilder
The string builder to be used. - timestamp
- Type: System.DateTime
The timestamp to be used in seconds at Unix epoch. - split
- Type: System.Char
The split character to be added.
The timestamp is added as UTC time in seconds since Unix epoch followed by optional milliseconds, but only if ShowTime is enabled.
GelfFormatter Class
Plexdata.LogWriter.Internals.Formatters Namespace
DateTimeExtension.ToUnixEpoch(DateTime)