|
@@ -109,8 +109,10 @@ public:
|
|
|
// ----------------------------------------------------------------------
|
|
|
/** @brief Writes a debug message
|
|
|
* @param message Debug message*/
|
|
|
- void verboseDebug(const char *message);
|
|
|
- void verboseDebug(const std::string &message);
|
|
|
+ template<typename... T>
|
|
|
+ void verboseDebug(T&&... args) {
|
|
|
+ verboseDebugInternal(Assimp::Formatter::format(), std::forward<T>(args)...);
|
|
|
+ }
|
|
|
|
|
|
// ----------------------------------------------------------------------
|
|
|
/** @brief Writes a info message
|
|
@@ -236,13 +238,19 @@ protected:
|
|
|
protected:
|
|
|
|
|
|
void debugInternal(Assimp::Formatter::format f);
|
|
|
+ void verboseDebugInternal(Assimp::Formatter::format f);
|
|
|
void warnInternal(Assimp::Formatter::format f);
|
|
|
void infoInternal(Assimp::Formatter::format f);
|
|
|
void errorInternal(Assimp::Formatter::format f);
|
|
|
|
|
|
template<typename... T, typename U>
|
|
|
void debugInternal(Assimp::Formatter::format f, U&& u, T&&... args) {
|
|
|
- warnInternal(std::move(f << std::forward<U>(u)), std::forward<T>(args)...);
|
|
|
+ debugInternal(std::move(f << std::forward<U>(u)), std::forward<T>(args)...);
|
|
|
+ }
|
|
|
+
|
|
|
+ template<typename... T, typename U>
|
|
|
+ void verboseDebugInternal(Assimp::Formatter::format f, U&& u, T&&... args) {
|
|
|
+ verboseDebugInternal(std::move(f << std::forward<U>(u)), std::forward<T>(args)...);
|
|
|
}
|
|
|
|
|
|
template<typename... T, typename U>
|
|
@@ -301,11 +309,6 @@ Logger::LogSeverity Logger::getLogSeverity() const {
|
|
|
return m_Severity;
|
|
|
}
|
|
|
|
|
|
-// ----------------------------------------------------------------------------------
|
|
|
-inline void Logger::verboseDebug(const std::string &message) {
|
|
|
- return verboseDebug(message.c_str());
|
|
|
-}
|
|
|
-
|
|
|
} // Namespace Assimp
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
@@ -319,7 +322,7 @@ inline void Logger::verboseDebug(const std::string &message) {
|
|
|
Assimp::DefaultLogger::get()->debug((string, __VA_ARGS__))
|
|
|
|
|
|
#define ASSIMP_LOG_VERBOSE_DEBUG_F(string, ...) \
|
|
|
- Assimp::DefaultLogger::get()->verboseDebug((Assimp::Formatter::format(string), __VA_ARGS__))
|
|
|
+ Assimp::DefaultLogger::get()->verboseDebug((string, __VA_ARGS__))
|
|
|
|
|
|
#define ASSIMP_LOG_INFO_F(string, ...) \
|
|
|
Assimp::DefaultLogger::get()->info((string, __VA_ARGS__))
|