Repo-Init
 
Loading...
Searching...
No Matches
Sentry.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <spdlog/details/null_mutex.h>
4#include <spdlog/sinks/base_sink.h>
5
6#include <mutex>
7#include <string>
8
9namespace spdlog::sinks
10{
11 // NOLINTBEGIN
20 template <typename Mutex> class sentry_api_sink : public base_sink<Mutex> {
21 public:
27 explicit sentry_api_sink(const std::string &sentryAddress);
28
33
34 protected:
42 void sink_it_(const details::log_msg &msg) override;
43
49 void flush_() override;
50
51 private:
52 bool _sentryAvailable{false};
53 };
54
59 // NOLINTEND
60} // namespace spdlog::sinks
sentry_api_sink(const std::string &sentryAddress)
Definition Sentry.cpp:22
void sink_it_(const details::log_msg &msg) override
Definition Sentry.cpp:141