Skip to content

32c97f21 9d67 172a 948c 3572ad8f5715

Axel Kesseler edited this page Mar 1, 2023 · 18 revisions

JsonFormatter.AddTime Method

The method puts the time into the string builder and adds the split character.

Namespace: Plexdata.LogWriter.Internals.Formatters
Assembly: Plexdata.LogWriter.Abstraction (in Plexdata.LogWriter.Abstraction.dll) Version: 1.0.7.1

Syntax

C#

private void AddTime(
	StringBuilder builder,
	string label,
	DateTime time,
	char split
)

Parameters

 

builder
Type: System.Text.StringBuilder
The string builder to be used.
label
Type: System.String
The value label to be used.
time
Type: System.DateTime
The time stamp to be used.
split
Type: System.Char
The split character to be added.

Remarks

The timestamp is always added and cannot be disabled, but might be empty. If the timestamp is empty or not is controlled by value of property ShowTime. Keep in mind, the time format in the settings is ignored in any case!

See Also

Reference

JsonFormatter Class
Plexdata.LogWriter.Internals.Formatters Namespace
JsonFormatter.ToOutput(String, String, Char)

Clone this wiki locally