Releases: apsystole/log
Releases · apsystole/log
v0.3.0
What's Changed
-
Do not escape HTML special characters inside JSON (#15). Use
SetEscapeHTML(false)
everywhere. The responsibility to render HTML is on Google Logging, which they do correctly. -
Handle custom MarshalJSON errors. Previously a failing marshaling would cause the entire message to be ignored, without logging anything, which was quite confusing.
-
Untyped nil values are now logged the same as typed nil values, as JSON
null
. Previously they weren't logged. -
The X-Cloud-Trace-Context header is now checked for the optional
o=0
flag; if found, no tracing is done and the header is ignored (the full format:X-Cloud-Trace-Context: TRACE_ID/SPAN_ID;o=TRACE_THIS
)
Full Changelog: v0.2.0...v0.3.0
v0.2.0
What's Changed
- Greatly improve performance when logging JSON objects (i.e. never run on the hot path the standard library's
json.Unmarshal()
). - Do not panic on marshaling errors.
Full Changelog: v0.1.1...v0.2.0