userver: utils::log Namespace Reference
Loading...
Searching...
No Matches
utils::log Namespace Reference

Detailed Description

Algorithms to aid logging.

Functions

std::string ToLimitedHex (std::string_view data, size_t limit)
 returns data converted to hex and truncated to limit
std::string ToLimitedUtf8 (std::string_view data, size_t limit)
 if data in utf-8, returns data truncated to limit otherwise returns stub
std::string ToLimitedUtf8 (std::string &&data, size_t limit)

Function Documentation

◆ ToLimitedUtf8()

std::string utils::log::ToLimitedUtf8 ( std::string && data,
size_t limit )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Does not copy data if it is returned as is