d for LOGD, i for LOGI, w for LOGW, e for LOGE
supports ostringstream& operator <<
Log.
d(
"First: ", 3,
" Second: ", 3.14)
void d(const Args &... args) const
Log output as debug.
Definition: logger.hpp:69
constexpr VCCC_INLINE_OR_STATIC Logger Log
Global vccc::Logger instance for syntax sugar.
Definition: logger.hpp:139
To use printf-like format, use vccc::Formatter
if ostringstream& operator << is overloaded for user-defined types, it can be printed
Log.
d(
"string: ", std::string(
"wow!"))
Log.
d(
"Point: ", cv::Point2i(3,4))
std::pair, std::tuple, std::integer_sequence, containers, chrono types, aggregate(since C++17) types can be printed.
Log.
d(std::vector<std::vector<int>>{{1, 2}, {3}});
Log.
d(std::make_tuple(1,
"hello"));
Log.
d(std::chrono::system_clock::now());
struct foo {
int x;
std::string name;
};
|
constexpr | Logger ()=default |
|
template<typename ... Args> |
void | d (const Args &... args) const |
| Log output as debug. More...
|
|
template<typename ... Args> |
void | i (const Args &... args) const |
| Informational log. More...
|
|
template<typename ... Args> |
void | w (const Args &... args) const |
| Warning log. More...
|
|
template<typename ... Args> |
void | e (const Args &... args) const |
| Error log. More...
|
|
template<typename... Args> |
void | operator() (Priority priority, const char *tag, const Args &... args) const |
|
template<typename ... Args> |
string_type | to_string (const Args &... args) const |
| Return logged value as std::string. More...
|
|