#include <Sentry.hpp>


Public Member Functions | |
| sentry_api_sink (const std::string &sentryAddress) | |
| ~sentry_api_sink () | |
Protected Member Functions | |
| void | sink_it_ (const details::log_msg &msg) override |
| void | flush_ () override |
Private Attributes | |
| bool | _sentryAvailable {false} |
A sink for sending log messages to a Sentry server.
This sink is used to send log messages to a Sentry server for error tracking and monitoring. It provides an interface for sending log messages and flushing the sink.
| Mutex | The type of mutex to use for thread safety. |
Definition at line 20 of file Sentry.hpp.
|
explicit |
Constructs a Sentry API sink with the specified Sentry server address.
| sentryAddress | The address of the Sentry server. |
Definition at line 121 of file Sentry.cpp.
| spdlog::sinks::sentry_api_sink< Mutex >::~sentry_api_sink | ( | ) |
|
overrideprotected |
Flushes the sink.
This function is called to flush any buffered log messages to the Sentry server.
Definition at line 188 of file Sentry.cpp.
|
overrideprotected |
Sends the log message to the Sentry server.
This function is called for each log message that needs to be sent to the Sentry server.
| msg | The log message to be sent. |
Definition at line 157 of file Sentry.cpp.
|
private |
Flag indicating if the Sentry server is available.
Definition at line 52 of file Sentry.hpp.