phptek\Sentry\Adaptor\RavenClient
The RavenClient class simply acts as a bridge between the Raven PHP SDK and the SentryLogWriter class itself. Any {@link SentryClientAdaptor} subclass should be able to be swapped-out and used at any point.
Synopsis
class RavenClient
extends SentryClientAdaptor
{
- // members
- private static string $default_error_level = 'ERROR';
- protected Raven_Client $client;
- protected array $logLevels = ;
- // methods
- public void __construct()
- public Raven_Client getSDK()
- public void setData()
- public void getLevel()
- public void send()
- // Inherited methods from SentryClientAdaptor
- protected mixed getOpts()
- public abstract void setData()
- public abstract string getLevel()
- public abstract mixed send()
Hierarchy
Members
private
- $default_error_level
—
string
It's an ERROR unless proven otherwise!
protected
- $client — phptek\Sentry\Adaptor\Raven_Client
- $logLevels
—
array
A mapping of log-level values between Zend_Log => Raven_Client
Methods
public
- __construct()
- getLevel()
- getSDK() — Used in unit tests.
- send()
- setData()
Inherited from phptek\Sentry\Adaptor\SentryClientAdaptor
protected
public
- getLevel()
- send() — Physically transport the data to the configured Sentry host.
- setData() — Set the data we need from the writer.