Changeset 408 for binary-improvements2/WebServer/src/WebAPI/APIs/Log.cs
- Timestamp:
- Feb 22, 2023, 5:51:32 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements2/WebServer/src/WebAPI/APIs/Log.cs
r402 r408 47 47 writer.WriteBeginArray (); 48 48 49 bool first = true; 50 foreach (LogBuffer.LogEntry logEntry in logEntries) { 51 if (!first) { 49 for (int i = 0; i < logEntries.Count; i++) { 50 LogBuffer.LogEntry logEntry = logEntries [i]; 51 52 if (i > 0) { 52 53 writer.WriteValueSeparator (); 53 54 } 54 55 55 first = false;56 57 56 writer.WriteRaw (jsonMsgKey); 58 57 writer.WriteString (logEntry.message); 59 58 60 59 writer.WriteRaw (jsonTypeKey); 61 60 writer.WriteString (logEntry.type.ToStringCached ()); 62 61 63 62 writer.WriteRaw (jsonTraceKey); 64 63 writer.WriteString (logEntry.trace); 65 64 66 65 writer.WriteRaw (jsonIsotimeKey); 67 66 writer.WriteString (logEntry.isoTime); 68 67 69 68 writer.WriteRaw (jsonUptimeKey); 70 69 writer.WriteString (logEntry.uptime.ToString ()); 71 70 72 71 writer.WriteEndObject (); 73 72 } 73 74 74 writer.WriteEndArray (); 75 75
Note:
See TracChangeset
for help on using the changeset viewer.