Skip to content

vbarter/sentry-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

sentry-cpp

sentry-cpp is a c/c++ client for Sentry

#include <Sentry.h> int main(int argc, char** argv) { //Instantiate a new client with a compatible DSN SENTRY.init("http://public:secret@example.com/1"); //only title SENTRY.error("title"); //title and message SENTRY.info("title","message"); //send extra data Json::Value extra; SENTRY.info("title","message",&extra); } 

Dependence

before you use sentry-cpp, you need install the following libraries.

  1. Jsoncpp

  2. libcurl

Install

next, you need edit the Makefile, and change the path for json-cpp and libcurl, now you can

make 

it will generate static library(.a) and share library(.so), you can use sentry-cpp in three ways:

  1. use source code, only Sentry.cpp and Sentry.h

  2. use shared object

  3. use static object

Enjoy!

About

c/c++ client for sentry service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors