13 static void Initialize()
15 if (Assimp::DefaultLogger::isNullLogger())
17 Assimp::DefaultLogger::create(
"", Assimp::Logger::VERBOSE);
19 Assimp::Logger::Debugging
20 | Assimp::Logger::Info
21 | Assimp::Logger::Warn
22 | Assimp::Logger::Err);
26 virtual void write(
const char* message)
override
28 std::string msg(message);
29 if (!msg.empty() && msg[msg.length() - 1] ==
'\n')
31 msg.erase(msg.length() - 1);
33 if (strncmp(message,
"Debug", 5) == 0)
35 LK_CORE_TRACE_TAG(
"Assimp", msg);
37 else if (strncmp(message,
"Info", 4) == 0)
39 LK_CORE_INFO_TAG(
"Assimp", msg);
41 else if (strncmp(message,
"Warn", 4) == 0)
43 LK_CORE_WARN_TAG(
"Assimp", msg);
47 LK_CORE_ERROR_TAG(
"Assimp", msg);