Skip to content

Releases: apsystole/log

v0.3.0

27 Sep 11:59
v0.3.0
464369e
Compare
Choose a tag to compare

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

26 Feb 20:03
Compare
Choose a tag to compare

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