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
9
namespace
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
32
~sentry_api_sink
();
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
55
using
sentry_api_sink_mt
=
sentry_api_sink<std::mutex>
;
56
using
sentry_api_sink_st
=
57
sentry_api_sink<details::null_mutex>
;
59
// NOLINTEND
60
}
// namespace spdlog::sinks
spdlog::sinks::sentry_api_sink
Definition
Sentry.hpp:20
spdlog::sinks::sentry_api_sink::sentry_api_sink
sentry_api_sink(const std::string &sentryAddress)
Definition
Sentry.cpp:118
spdlog::sinks::sentry_api_sink::_sentryAvailable
bool _sentryAvailable
Definition
Sentry.hpp:52
spdlog::sinks::sentry_api_sink::flush_
void flush_() override
Definition
Sentry.cpp:185
spdlog::sinks::sentry_api_sink::~sentry_api_sink
~sentry_api_sink()
Definition
Sentry.cpp:152
spdlog::sinks::sentry_api_sink::sink_it_
void sink_it_(const details::log_msg &msg) override
Definition
Sentry.cpp:154
spdlog::sinks
Definition
Loki.cpp:18
include
logging
Sentry.hpp
Generated on Sun Dec 8 2024 15:15:45 for Repo-Init by
1.12.0