diff --git a/deps/ox/src/ox/trace/trace.hpp b/deps/ox/src/ox/trace/trace.hpp index 76fb8e4f..afcfc790 100644 --- a/deps/ox/src/ox/trace/trace.hpp +++ b/deps/ox/src/ox/trace/trace.hpp @@ -56,6 +56,7 @@ class OutStream { class StdOutStream { private: + const char *m_delimiter = " "; TraceMsg m_msg; public: @@ -67,11 +68,19 @@ class StdOutStream { template constexpr inline StdOutStream &operator<<(const T &v) { - m_msg.msg += " "; + m_msg.msg += m_delimiter; m_msg.msg += v; return *this; } + /** + * del sets the delimiter between log segments. + */ + inline StdOutStream &del(const char *delimiter) { + m_delimiter = delimiter; + return *this; + } + }; @@ -90,6 +99,10 @@ class NullStream { return *this; } + inline NullStream &del(const char*) { + return *this; + } + }; #ifdef DEBUG