![]() |
LogIt++
Header-only, macro-first C++ logging library
|
Helpers for log tag formatting. More...
#include <sstream>#include <string>#include <initializer_list>#include <utility>Go to the source code of this file.
Namespaces | |
| namespace | logit |
| The primary namespace for the LogIt++ library. | |
| namespace | logit::detail |
Macros | |
| #define | LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_UTILS_TAG_UTILS_HPP_INCLUDED |
Functions | |
| template<typename T > | |
| std::string | logit::detail::to_string_any (const T &v) |
| Convert value to string via stream insertion. | |
| std::pair< std::string, std::string > | logit::detail::make_tag (std::string key, std::string value) |
| Create tag from string key and value. | |
| template<typename V > | |
| std::pair< std::string, std::string > | logit::detail::make_tag (const char *key, const V &v) |
| Create tag from C-string key and arbitrary value. | |
| std::string | logit::detail::format_tags (std::initializer_list< std::pair< std::string, std::string > > tags) |
| Format tag list into a single string. | |
| template<typename T > | |
| std::string | logit::detail::make_section (const T &name) |
Format a raw section name as [name]. | |
Helpers for log tag formatting.
Definition in file tag_utils.hpp.
| #define LOGIT_CPP_HEADER_LOGIT_CPP_LOGIT_UTILS_TAG_UTILS_HPP_INCLUDED |
Definition at line 3 of file tag_utils.hpp.