4 Commits

Author SHA1 Message Date
Andy Getzendanner
698d4f483b In logging tests that write expectations against ScopedMockLog::Send, suppress the default behavior that forwards to ScopedMockLog::Log so that unexpected logs are printed with full metadata. Many of these tests are poking at those metadata, and a failure message that doesn't include them is unhelpful.
Also, add a GoogleTest debug `PrintTo` routine for `LogEntry`, so that unexpected calls to `ScopedMockLog::Send` print metadata legibly.

PiperOrigin-RevId: 790735226
Change-Id: If21821812a9b7ecfaefef9ea5085f161f9331cf4
2025-08-04 07:14:57 -07:00
Abseil Team
45287476e8 Misc. adjustments to unit tests for logging.
PiperOrigin-RevId: 704719961
Change-Id: I1a20823462a1af8aeae7498a3c511578efe487be
2024-12-10 08:28:46 -08:00
Andy Getzendanner
6e701508ea Encode some additional metadata when writing protobuf-encoded logs.
PiperOrigin-RevId: 649138261
Change-Id: I8687eb7b06cc9e96779d1d3e98b44b4f643c95a8
2024-07-03 11:15:25 -07:00
Andy Getzendanner
ebab79b578 Release structured logging.
This stores the operands to LOG (and CHECK) as separate fields in a serialized protobuf.  The protobuf format is not yet published.

PiperOrigin-RevId: 489275799
Change-Id: I86d83671a6b1feb2bddd5bee51552907897ca8eb
2022-11-17 12:18:03 -08:00