|
@ -574,16 +574,15 @@ func (l *loggingT) formatHeader(s severity, file string, line int) *buffer { |
|
|
buf.twoDigits(9, minute) |
|
|
buf.twoDigits(9, minute) |
|
|
buf.tmp[11] = ':' |
|
|
buf.tmp[11] = ':' |
|
|
buf.twoDigits(12, second) |
|
|
buf.twoDigits(12, second) |
|
|
buf.tmp[14] = ' ' |
|
|
|
|
|
buf.nDigits(5, 15, pid, ' ') // TODO: should be TID
|
|
|
|
|
|
|
|
|
buf.tmp[14] = '.' |
|
|
|
|
|
buf.nDigits(6, 15, now.Nanosecond()/1000, '0') |
|
|
buf.tmp[20] = ' ' |
|
|
buf.tmp[20] = ' ' |
|
|
buf.Write(buf.tmp[:21]) |
|
|
buf.Write(buf.tmp[:21]) |
|
|
buf.WriteString(file) |
|
|
buf.WriteString(file) |
|
|
buf.tmp[0] = ':' |
|
|
buf.tmp[0] = ':' |
|
|
n := buf.someDigits(1, line) |
|
|
n := buf.someDigits(1, line) |
|
|
buf.tmp[n+1] = ']' |
|
|
|
|
|
buf.tmp[n+2] = ' ' |
|
|
|
|
|
buf.Write(buf.tmp[:n+3]) |
|
|
|
|
|
|
|
|
buf.tmp[n+1] = ' ' |
|
|
|
|
|
buf.Write(buf.tmp[:n+2]) |
|
|
return buf |
|
|
return buf |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|