Tracer  v0.0.1
A platform independant stack trace generator
tracer::TracerHandler::Config Struct Reference

User configuration. More...

#include <TracerHandler.hpp>

+ Collaboration diagram for tracer::TracerHandler::Config:

Public Attributes

std::vector< TraceerEnginespreferredTracerEngines
 List of preferred engines; First try them for the Tracer.
 
std::vector< DebuggerEnginespreferredDebuggerEngines
 List of preferred engines; First try them for the Tracer.
 
bool autoPrintToStdErr = true
 Prints the stack trace to stderr when enabled.
 
bool autoPrintToFile = false
 Automatically writes the stack trace to a file when enabled.
 
std::string logFile = "trace.log"
 The file to automatically print to; Requires autoPrintToFile.
 
bool appendToFile = true
 Overides file co; Requires autoPrintToFile.
 
callBackPTR callback = nullptr
 Function pointer to be called in the internal signal handler (MUST return)
 
void * callbackData = nullptr
 User defined data to be send to the callback function.
 
bool callDefultHandlerWhenDone = true
 The signal handler will call the default signal handler when done.
 
std::vector< int > signums
 List of signals to handle. More...
 

Detailed Description

User configuration.

Definition at line 78 of file TracerHandler.hpp.

Member Data Documentation

◆ signums

std::vector<int> tracer::TracerHandler::Config::signums
Initial value:
= {SIGINT,
SIGILL,
SIGABRT,
SIGFPE,
SIGSEGV,
SIGTERM,
SIGQUIT,
SIGTRAP,
SIGBUS,
SIGPIPE,
SIGSYS
}

List of signals to handle.

Definition at line 93 of file TracerHandler.hpp.


The documentation for this struct was generated from the following file: