Class CrashHandler

Synopsis

#include <src/easylogging++.h>

class CrashHandler : base::NoCopy

Description

Handles unexpected crashes.

Mentioned in

Inheritance

Ancestors: NoCopy

Methods

CrashHandler overloadCrashHandler.
setHandler

Source

Lines 3612-3624 in src/easylogging++.h.

class CrashHandler : base::NoCopy {
 public:
  typedef void (*Handler)(int);

  explicit CrashHandler(bool useDefault);
  explicit CrashHandler(const Handler& cHandler) {
    setHandler(cHandler);
  }
  void setHandler(const Handler& cHandler);

 private:
  Handler m_handler;
};





Add Discussion

Log in to comment