Closed swebb2066 closed 5 months ago
would it make sense to make a vararg or parameter packed version of LogLog::debug()?
I do not know how to use parameter packs and achieve avoiding message building when debug is disabled. I believe internal debug logging is currently sparse (limited to infrequently executed code) to reduce overhead. The LogLog::isDebugEnabled()
is much higher overhead than Logger::isDebugEnabledFor(logger)
Since we have a lot of internal log messages that only log strings, would it make sense to make a vararg or parameter packed version of
LogLog::debug()
? That way you could do something likeLogLog::debug("Opening file ", filename, " failed");
which would automatically concatenate the strings. That would also make theLOGLOG_DEBUG
macro more useful.