Algorithms to aid logging.
Definition in file log.hpp.
Go to the source code of this file.
#include <string_view>
Namespaces | |
namespace | utils |
Utilities. | |
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 | |