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

Go to the source code of this file.

#include <type_traits>
#include <google/protobuf/message.h>
#include <userver/logging/log_helper.hpp>
This graph shows which files directly or indirectly include this file:

Namespaces

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

Functions

logging::LogHelperlogging::operator<< (logging::LogHelper &h, const google::protobuf::Message &message)
 Logs the protobuf message as a debug string (see protobuf::json::MessageToDebugString).
template<typename T>
requires (std::is_base_of_v<::google::protobuf::Message, T>)
logging::LogHelperlogging::operator<< (logging::LogHelper &h, const T &message)
 Logs message — any protobuf message type, derived from or equal to google::protobuf::Message — as a debug string, forwarding to the overload above.