MCPcopy Create free account
hub / github.com/PDAL/PDAL / setupLog

Method setupLog

pdal/Stage.cpp:369–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void Stage::setupLog()
370{
371 LogLevel l(LogLevel::Error);
372
373 if (m_log)
374 {
375 l = m_log->getLevel();
376 m_logLeader = m_log->leader();
377 }
378
379 if (!m_logname.empty())
380 m_log = Log::makeLog("", m_logname);
381 else if (!m_log)
382 m_log = Log::makeLog("", "stdlog");
383 m_log->setLevel(l);
384
385 // Add the stage name to the existing leader.
386 if (m_logLeader.size())
387 m_logLeader += " ";
388 m_logLeader += getName();
389
390 gdal::ErrorHandler::getGlobalErrorHandler().set(m_log, isDebug());
391}
392
393
394void Stage::l_addArgs(ProgramArgs& args)

Callers

nothing calls this directly

Calls 5

isDebugFunction · 0.85
getNameFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected