8#include <tracking/trackFindingCDC/utilities/Backtrace.h>
10#include <framework/logging/Logger.h>
11#include <framework/logging/LogConfig.h>
23 std::vector<void*> buffer(nFrames);
24 void** rawBuffer = buffer.data();
27 int traceSize = backtrace(rawBuffer, nFrames);
28 B2LOG(logLevel, 0,
"backtrace() returned " << traceSize <<
" addresses");
30 traceLines = backtrace_symbols(rawBuffer, traceSize);
32 if (traceLines ==
nullptr) {
33 B2LOG(logLevel, 0,
"no backtrace obtained");
35 for (
int iLine = 0; iLine < traceSize; ++iLine) {
36 B2LOG(logLevel, 0, traceLines[iLine]);
ELogLevel
Definition of the supported log levels.
Abstract base class for different kinds of events.