-
Notifications
You must be signed in to change notification settings - Fork 0
32c97f21 9d67 172a 948c 3572ad8f5715
Axel Kesseler edited this page Mar 1, 2023
·
18 revisions
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
C#
private void AddTime(
StringBuilder builder,
string label,
DateTime time,
char split
)
- 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.
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!
JsonFormatter Class
Plexdata.LogWriter.Internals.Formatters Namespace
JsonFormatter.ToOutput(String, String, Char)