Algorithms to aid logging.
Definition in file log.hpp.
Go to the source code of this file.
#include <cstddef>#include <string>#include <string_view>Namespaces | |
| namespace | utils |
| General-purpose utilities used across userver libraries. | |
| namespace | utils::log |
| Algorithms to aid logging. | |
Functions | |
| std::string | utils::log::ToLimitedHex (std::string_view data, size_t limit) |
| returns data converted to hex and truncated to limit | |
| std::string | utils::log::ToLimitedUtf8 (std::string_view data, size_t limit) |
| if data in utf-8, returns data truncated to limit otherwise returns stub | |
| std::string | utils::log::ToLimitedUtf8 (std::string &&data, size_t limit) |