userver: /data/code/userver/libraries/proto-structs/include/userver/proto-structs/log.hpp File Reference
Loading...
Searching...
No Matches
log.hpp File Reference

Detailed Description

Logging of protobuf structs via logging::LogHelper.

Definition in file log.hpp.

Go to the source code of this file.

This graph shows which files directly or indirectly include this file:

Namespaces

namespace  logging
 Logging levels, helpers, default logger, and related utilities.

Functions

template<typename TStruct>
requires proto_structs::traits::ProtoStruct<std::remove_cvref_t<TStruct>>
logging::LogHelperlogging::operator<< (logging::LogHelper &h, const TStruct &obj)
 Logs the protobuf struct obj as a debug string (see logging::operator<< for google::protobuf::Message). The representation uses proto field names (not json_name), is truncated once it grows too large, [debug_redact = true] fields are redacted, and it must not be parsed back or relied upon for stability.