File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 4.15.0
4
+
5
+ The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.15.0.
6
+
7
+ ### Features
8
+
9
+ - Add support for Sentry Structured Logs [ (#1000 )] ( https://github.com/getsentry/sentry-laravel/pull/1000 )
10
+
11
+
12
+ To enable this feature, add the ` sentry_logs ` log channel in your ` config/logging.php ` configuration:
13
+
14
+ ``` php
15
+ 'channels' => [
16
+ ...
17
+ 'sentry' => [
18
+ 'driver' => 'sentry_logs',
19
+ 'level' => env('LOG_LEVEL', 'info'),
20
+ ],
21
+ ...
22
+ ],
23
+ ```
24
+
25
+ Add ` SENTRY_ENABLE_LOGS=true ` to your ` .env ` file.
26
+
27
+ Use the Log facade to sent your logs to Sentry. To learn more, head over to the [ Laravel docs] ( https://laravel.com/docs/logging ) .
28
+
29
+ ``` php
30
+ use use Illuminate\Support\Facades\Log;
31
+
32
+ Log::driver('sentry')->info('User {id} failed to login.', ['id' => $user->id]);
33
+ ```
34
+
3
35
## 4.14.1
4
36
5
37
The Sentry SDK team is happy to announce the immediate availability of Sentry Laravel SDK v4.14.1.
You can’t perform that action at this time.
0 commit comments