Logging of protobuf structs via logging::LogHelper.
Definition in file log.hpp.
Go to the source code of this file.
#include <userver/logging/log_helper.hpp>#include <userver/proto-structs/convert.hpp>#include <userver/proto-structs/type_mapping.hpp>#include <userver/protobuf/log.hpp>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::LogHelper & | logging::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. | |