MCPcopy Create free account
hub / github.com/assimp/assimp / SetLogStreams

Function SetLogStreams

tools/assimp_cmd/Main.cpp:251–263  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

249
250// ------------------------------------------------------------------------------
251void SetLogStreams(const ImportData& imp)
252{
253 printf("\nAttaching log stream ... OK\n");
254
255 unsigned int flags = 0;
256 if (imp.logFile.length()) {
257 flags |= aiDefaultLogStream_FILE;
258 }
259 if (imp.showLog) {
260 flags |= aiDefaultLogStream_STDERR;
261 }
262 DefaultLogger::create(imp.logFile.c_str(),imp.verbose ? Logger::VERBOSE : Logger::NORMAL,flags);
263}
264
265
266// ------------------------------------------------------------------------------

Callers 2

ImportModelFunction · 0.85
ExportModelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected