e3.2.0 File and console output clarity and uniform configuration, minor cleanup.

This commit is contained in:
2025-09-29 10:53:47 -04:00
parent d58b61067f
commit 162541e53f
13 changed files with 73 additions and 101 deletions

View File

@ -219,19 +219,6 @@ func (s *serializer) writeTextValue(v any) {
switch val := v.(type) {
case string:
s.buf = append(s.buf, val...)
// // TODO: Make configurable or remove after analyzing use cases
// // json handles string quotes
// // txt format behavior may be unexpected with surrounding quotes,
// // causing issues with automatic log parsers and complicates regex processing
// if len(val) == 0 || strings.ContainsRune(val, ' ') {
// s.buf = append(s.buf, '"')
// s.writeString(val)
// s.buf = append(s.buf, '"')
// } else {
// s.buf = append(s.buf, val...)
// }
case int:
s.buf = strconv.AppendInt(s.buf, int64(val), 10)
case int64: