Skip to content

6c72e1df 4ea3 b1be bdad 18439a0e663e

Axel Kesseler edited this page Mar 1, 2023 · 1 revision

GelfFormatter.AddTimestamp Method

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

Syntax

C#

private void AddTimestamp(
	StringBuilder builder,
	DateTime timestamp,
	char split
)

Parameters

 

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.

Remarks

The timestamp is added as UTC time in seconds since Unix epoch followed by optional milliseconds, but only if ShowTime is enabled.

See Also

Reference

GelfFormatter Class
Plexdata.LogWriter.Internals.Formatters Namespace
DateTimeExtension.ToUnixEpoch(DateTime)

Clone this wiki locally