diff --git a/logger.h b/logger.h index cba77db..34480c5 100644 --- a/logger.h +++ b/logger.h @@ -2,6 +2,7 @@ #define LOGGER_H #include #include +#include "utils.h" class Logger { private: @@ -24,7 +25,15 @@ class Logger { (*out) << time(0) << " " << prefix; } - (*out) << val; + + if constexpr (std::is_convertible_v) + { + (*out) << utils::catv(val); + } + else + { + (*out) << val; + } headerSent = true; return *this; // or maybe out itself? probably not. }