You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-17Lines changed: 12 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,29 +6,24 @@ ZendSentry is released under the New BSD License.
6
6
7
7
The current version of ZendSentry for ZF3 is `3.2.0`. It supports Zend Framework >= 3.0. For other versions see tags in the 1.* series as well as 2.* series.
8
8
9
-
#Latest Changes
10
-
- possibility to add extra context to the log event
11
-
- Switch Raven dependency to new official sentry/sentry repository
12
-
- Fix problem introduced by ZF BC break in ZF version 2.5.3 and branch of legacy branch
13
-
14
-
#Important Changes
9
+
# Important Changes
10
+
- 3.2.0: Upgrade dependencies to `sentry/sentry` 1.7.0 and `ravenjs` 3.17.0
15
11
- 3.0.1: ViewHelper fix
16
12
- 3.0.0: First ZF2 release with latest sentry SDK dependencies and ZF3 compatibility fixes
17
-
- 2.2.1: Update to `sentry/sentry` 1.5.0 and `ravenjs` 3.8.0, Fix: Only detach HttpExceptionStrategy if it exists
18
-
- 2.2.0: Update to `sentry/sentry` 0.21.2
13
+
- 2.2.1: Fix: Only detach HttpExceptionStrategy if it exists
19
14
- 2.0.0: New major version for ZF >=2.5.3
20
15
- 1.5.2: Configurable error messages
21
16
- 1.4.0: Raven configuration can now be overwritten through ZendSentry configuration if needed
22
17
- 1.2.0: supports tags, every logging action returns the Sentry event_id, Raven is registered as Service
23
18
- 0.3.1: dedicated CLI ExceptionStrategy (credits to Mateusz Mirosławski)
24
19
25
-
#Introduction
20
+
#Introduction
26
21
27
-
##What's Sentry?
22
+
##What's Sentry?
28
23
[Sentry](https://www.getsentry.com/welcome/) is an online service to which you can log anything including your
29
24
exceptions and errors. Sentry creates nice reports in real time and aggregates your logged data for you.
30
25
31
-
##What's ZendSentry
26
+
##What's ZendSentry
32
27
It is a module that builds the bridge between your Zend Framework 2 application and the Sentry service. It's extremely
33
28
easy to setup and does a lot of things out-of-the-box.
34
29
@@ -43,7 +38,7 @@ Current features:
43
38
* Raven is registered as a Service
44
39
* override Raven config defaults
45
40
46
-
#Installation
41
+
#Installation
47
42
48
43
This module is available on [Packagist](https://packagist.org/packages/cloud-solutions/zend-sentry).
49
44
In your project's `composer.json` use:
@@ -69,7 +64,7 @@ is registered as both error and exception handler, [try it](#try-it) by triggeri
69
64
exceptions. You should instantly see them in your Sentry dashboard. ZendSentry also packages its own ExceptionStrategies
70
65
to make sure, exceptions ZF would otherwise intercept, are logged.
71
66
72
-
#Manual Usage
67
+
#Manual Usage
73
68
Additonally, the module registers a log event listener on application level. So you can trigger custom log events from
74
69
anywhere in your application.
75
70
@@ -106,7 +101,7 @@ exceptions manually by using the respective listener directly:
106
101
$eventID = $result->last();
107
102
}
108
103
109
-
#Using Tags
104
+
#Using Tags
110
105
111
106
You can also pass your own tags to Sentry. The service will automatically create filtering and sorting for these tags.
112
107
When using the `log` event, you can optionally pass tags like this:
@@ -130,7 +125,7 @@ If using the `logException` event manually, you can also pass along tags:
130
125
131
126
See how to use tags for automagically logged exceptions below.
132
127
133
-
#Raven as Service
128
+
#Raven as Service
134
129
135
130
The module registers the Raven_Client as an application wide service. Usually you don't want to access it directly
136
131
because triggering the event listeners leaves you with cleaner code. One example where the direct usage of Raven can
@@ -154,7 +149,7 @@ You might want to do something like this e.g. in your `AbstractActionController:
154
149
);
155
150
}
156
151
157
-
#Configuration options
152
+
#Configuration options
158
153
159
154
Just for the record, a copy of the actual global configuration options:
160
155
@@ -225,7 +220,7 @@ Just for the record, a copy of the actual global configuration options:
225
220
*/
226
221
'raven-config' => array(),
227
222
228
-
#Try it
223
+
#Try it
229
224
A few ideas how to try the different features from a Controller or View:
0 commit comments