Function logCrashReason

Synopsis

#include <src/easylogging++.h>

static void logCrashReason(int sig, bool stackTraceIfAvailable=false, Level level=Level::Fatal, const char *logger=base::consts::kDefaultLoggerId)

Description

Logs reason of crash as per sig.

Parameters

sig - Crash signal

stackTraceIfAvailable - Includes stack trace if available

level - Logging level

logger - Logger to use for logging

Mentioned in

Source

Lines 2943-2945 in src/easylogging++.cc. Line 3697 in src/easylogging++.h.

void Helpers::logCrashReason(int sig, bool stackTraceIfAvailable, Level level, const char* logger) {
  el::base::debug::logCrashReason(sig, stackTraceIfAvailable, level, logger);
}





Add Discussion

Log in to comment