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
+26-5Lines changed: 26 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,14 +180,32 @@ This additional meta data will then be automatically appended to all of your Lar
180
180
181
181
182
182
### How to send data asynchronously
183
-
By default each log event will be sent to Understand.io's api server directly after the event happens. If you generate a large number of logs, this could slow your app down and, in these scenarios, we recommend that you make use of a queue handler. To do this, change the config parameter `handler` to `queue` and Laravel queues will be automatically used. Bear in mind that by the default Laravel queue is `sync`, so you will still need to configure your queues properly using something like iron.io or Amazon SQS. See http://laravel.com/docs/queues for more information.
183
+
184
+
##### Async handler
185
+
By default each log event will be sent to Understand.io's api server directly after the event happens. If you generate a large number of logs, this could slow your app down and, in these scenarios, we recommend that you make use of a async handler. To do this, change the config parameter `handler` to `async`.
184
186
185
187
```php
186
188
/**
187
-
* Specify which handler to use (sync|queue)
189
+
* Specify which handler to use - sync, queue or async.
190
+
*
191
+
* Note that the async handler will only work in systems where
192
+
* the CURL command line tool is installed
188
193
*/
189
-
'handler' => 'queue',
194
+
'handler' => 'async',
195
+
```
196
+
197
+
The async handler is supported in most of the systems - the only requirement is that CURL command line tool is installed and functioning correctly. To check whether CURL is available on your system, execute following command in your console:
198
+
190
199
```
200
+
curl -h
201
+
```
202
+
203
+
If you see instructions on how to use CURL then your system has the CURL binary installed and you can use the ```async``` handler.
204
+
205
+
> Keep in mind that Laravel allows you to specify different configuration values in different environments. You could, for example, use the async handler in production and the sync handler in development.
206
+
207
+
##### Laravel queue handler
208
+
Although we generally recommend using the async handler, making use of queues is another another option. Bear in mind that by the default Laravel queue is `sync`, so you will still need to configure your queues properly using something like iron.io or Amazon SQS. See http://laravel.com/docs/queues for more information.
191
209
192
210
### Configuration
193
211
@@ -205,9 +223,12 @@ return [
205
223
'silent' => true,
206
224
207
225
/**
208
-
* Specify which handler to use (sync|queue)
226
+
* Specify which handler to use - sync, queue or async.
227
+
*
228
+
* Note that the async handler will only work in systems where
0 commit comments