24const char FairLogger::endl =
' ';
25const char FairLogger::flush =
' ';
27FairLogger::FairLogger()
29 , fLogFileSeverity(
"info")
30 , fConsoleSeverity(
"info")
32 , fBufferSizeNeeded(-1)
33 , fDynamicBuffer(fBufferSize)
34 , fBufferPointer(&fDynamicBuffer[0])
36 fair::Logger::OnFatal(LogFatalMessage);
48void FairLogger::Fatal(
const char*
file,
const char* line,
const char*
func,
const char*
format, ...)
136void FairLogger::Log(fair::Severity
severity,
151 fBufferSizeNeeded = vsnprintf(fBufferPointer, fBufferSize,
format, arglist);
160 if (fBufferSizeNeeded <=
static_cast<int>(fBufferSize) && fBufferSizeNeeded >= 0) {
162 LOGD(
severity,
file, line,
func) << std::string(fBufferPointer,
static_cast<size_t>(fBufferSizeNeeded));
169 fBufferSize = (fBufferSizeNeeded > 0) ? (fBufferSizeNeeded + 1) : (fBufferSize * 2);
170 fDynamicBuffer.resize(fBufferSize);
178void FairLogger::LogFatalMessage()
188 TString corefile =
"core_dump_";
189 int pid = gSystem->GetPid();
192 std::cerr <<
"For later analysis we write a core dump to " << corefile << std::endl;
194 if (freopen(corefile,
"w", stderr)) {
195 gSystem->StackTrace();
200 throw fair::FatalException(
"Fatal error occured. Exiting...");
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual Show related Highlight grid Show only individual collision Color clusters belonging to track objects Set line Enable drawing TPC data Enable drawing TOF data Enable drawing magnetic field Set field line step count Invert colors configStandalone Heavy OpenGL display display_heavy Show tracks with ITS contribution Show tracks with TOF contribution Enable propagation of loopers Show clusters at nominal x of pad row for early transformed data Split CE tracks when they cross the central Mark clusters Mark adjacent clusters Hide rejected tracks Apply filter on tracks to be displayed Separate increase X h configStandalone Camera window renderer OpenGL display display_camera Orient the camera such that the y axis is always upwards Full Screen MultiSample Anti Downsampling Anti Enable Vertical Sync Target frame or if the backend cannot limit to the refresh Use OpenGL indirect draws to reduce number of draw calls Display h configStandalone Vulkan display display_vulkan Have uniform buffers in host accessible device memory h configStandalone Internal display display_internal Number of updates the Qt GUI may send ahead of the last one the display has before it waits for the display Opacity of the console background Number of console lines the history is shortened to this when it reaches twice the size Time in seconds an info message fades out after setInfoTime h OpenGL display display Font size Do not use Freetype for font Renderer for event Frontend to use for event ROOT macros used as track filter Console script file
void Debug3(const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(debug3) << content
void Debug(const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(debug) << content
void Debug1(const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(debug1) << content
void Debug2(const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(debug2) << content
static FairLogger * GetLogger()
void Error(const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(error) << content
bool IsLogNeeded(fair::Severity severity)
void Info(const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(info) << content
void Debug4(const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(debug4) << content
void Warning(const char *file, const char *line, const char *func, const char *format,...) __attribute__((deprecated("Use 'LOG(warn) << content
GLint GLint GLsizei GLint GLenum format