Function setCrashHandler

Synopsis

#include <src/easylogging++.h>

static void setCrashHandler(const el::base::debug::CrashHandler::Handler &crashHandler)

Description

Overrides default crash handler and installs custom handler.

Parameters

crashHandler - A functor with no return type that takes single int argument. Handler is a typedef with specification: void (*Handler)(int)

Mentioned in

Source

Lines 3686-3688 in src/easylogging++.h.

static inline void setCrashHandler(const el::base::debug::CrashHandler::Handler& crashHandler) {
  el::elCrashHandler.setHandler(crashHandler);
}





Add Discussion

Log in to comment