forked from aschmelyun/larametrics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlarametrics.php
165 lines (150 loc) · 5.96 KB
/
larametrics.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?php
return [
/*
|--------------------------------------------------------------------------
| Models Watched
|--------------------------------------------------------------------------
|
| Any app model present in this array is watched by Larametrics, and its
| changes are stored in the database under the larametrics_models table.
| If you would like no models watched, change this to an empty array.
|
*/
'modelsWatched' => [
'App\User'
],
/*
|--------------------------------------------------------------------------
| Models Watched - Expire Days
|--------------------------------------------------------------------------
|
| By default, model changes are stored in the database for 30 days. You
| can set your own expiration time (in days) here. During each time a change
| is added to the database, any records older than the expiration time will
| be removed.
|
*/
'modelsWatchedExpireDays' => 30,
/*
|--------------------------------------------------------------------------
| Models Watched - Expire Amount
|--------------------------------------------------------------------------
|
| By default, a max of 1200 model changes are stored in the database at
| any given time. Set this number to 0 if you would like to have no limit.
|
*/
'modelsWatchedExpireAmount' => 1200,
/*
|--------------------------------------------------------------------------
| Requests Watched
|--------------------------------------------------------------------------
|
| By default, requests are not watched due to resource conservation. By
| enabling this portion of the app, all requests to your site and their
| details will be logged in the larametrics_requests table.
|
*/
'requestsWatched' => false,
/*
|--------------------------------------------------------------------------
| Requests To Skip
|--------------------------------------------------------------------------
|
| By default, when requestsWatched is enabled, all requests are watched.
| If you would like Larametrics to skip a path you can add it below.
|
*/
'requestsToSkip' => [
'login'
],
/*
|--------------------------------------------------------------------------
| Requests Watched - Expire Days
|--------------------------------------------------------------------------
|
| By default, requests are stored for 10 days after creation. You can set
| your own expiration time (in days) here. During each request log
| creation, any items older than the expiration time will be removed.
|
*/
'requestsWatchedExpireDays' => 10,
/*
|--------------------------------------------------------------------------
| Requests Watched - Expire Amount
|--------------------------------------------------------------------------
|
| By default, a max of 10000 requests are stored in the database at any
| given time. Set this number to 0 if you would like to have no limit.
|
*/
'requestsWatchedExpireAmount' => 10000,
/*
|--------------------------------------------------------------------------
| Ignore Larametrics Requests
|--------------------------------------------------------------------------
|
| If both this and requestsWatched are both set to true, Larametrics
| will not log requests that are part of the package.
|
*/
'ignoreLarametricsRequests' => true,
/*
|--------------------------------------------------------------------------
| Logs Watched
|--------------------------------------------------------------------------
|
| Any time that the Laravel log is written to, its contents are stored
| in the database under the larametrics_logs table.
| If you would like to disable log storage, set this to false.
|
*/
'logsWatched' => true,
/*
|--------------------------------------------------------------------------
| Logs Watched - Expire Days
|--------------------------------------------------------------------------
|
| By default, logs are stored in the database for an unlimited amount
| of time. You can set your own expiration time (in days) here. Each
| time a log is added to the database, any records older than the
| expiration time will be removed.
|
*/
'logsWatchedExpireDays' => 0,
/*
|--------------------------------------------------------------------------
| Logs Watched - Expire Amount
|--------------------------------------------------------------------------
|
| By default, there is no limit on logs stored in the database at any
| given time. Change this number if you would prefer there to be a limit.
|
*/
'logsWatchedExpireAmount' => 0,
/*
|--------------------------------------------------------------------------
| Hide Unwatched Menu Items
|--------------------------------------------------------------------------
|
| If this is set to true, the main navigation for Larametrics will hide
| the links for items (models, requests, logs) that are not being watched.
*/
'hideUnwatchedMenuItems' => true,
/*
|--------------------------------------------------------------------------
| Notification Methods
|--------------------------------------------------------------------------
|
| Set how you want to be notified here, by default both are env variables
| but if you'd like to directly override them, you can do so here.
|
| 'email' should be a standard email address
| 'slack' should be a Slack Webhook URL ready to receive messages
*/
'notificationMethods' => [
'email' => env('LARAMETRICS_NOTIFICATION_EMAIL', 'admin@localhost'),
'slack' => env('LARAMETRICS_NOTIFICATION_SLACK_WEBHOOK', ''),
'webhook' => env('LARAMETRICS_NOTIFICATION_CUSTOM_WEBHOOK', '')
]
];