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
+35-32Lines changed: 35 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,23 +19,26 @@ There are three different transport options that can be configured to send data
19
19
20
20
###ExecTransport:
21
21
ExecTransport does not require a Stackify agent to be installed because it sends data directly to Stackify services. It collects log entries in a single batch, calls curl using the ```exec``` function, and sends it to the background immediately [```exec('curl ... &')```]. This will affect the performance of your application minimally, but it requires permissions to call ```exec``` inside the PHP script and it may cause silent data loss in the event of any network issues. This transport method does not work on Windows. To configure ExecTransport you need to pass the environment name and API key (license key):
22
-
```php
23
-
use Stackify\Log\Transport\ExecTransport;
24
-
use Stackify\Log\Monolog\Handler as StackifyHandler;
22
+
23
+
```php
24
+
use Stackify\Log\Transport\ExecTransport;
25
+
use Stackify\Log\Monolog\Handler as StackifyHandler;
26
+
27
+
$transport = new ExecTransport('api_key');
28
+
$handler = new StackifyHandler('application_name', 'environment_name', $transport);
- ExecTransport and CurlTransport support data delivery through proxy. Specify proxy using [libcurl format](http://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html): <[protocol://][user:password@]proxyhost[:port]>
CurlTransport does not require a Stackify agent to be installed and it also sends data directly to Stackify services. It collects log entries in a single batch and sends data using native [PHP cURL](http://php.net/manual/en/book.curl.php) functions. This way is a blocking one, so it should not be used on production environments. To configure CurlTransport you need to pass environment name and API key (license key):
53
-
```php
54
-
use Stackify\Log\Transport\CurlTransport;
55
-
use Stackify\Log\Monolog\Handler as StackifyHandler;
56
+
```php
57
+
use Stackify\Log\Transport\CurlTransport;
58
+
use Stackify\Log\Monolog\Handler as StackifyHandler;
56
59
57
-
$transport = new CurlTransport('api_key');
58
-
$handler = new StackifyHandler('application_name', 'environment_name', $transport);
- ExecTransport and CurlTransport support data delivery through proxy. Specify proxy using [libcurl format](http://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html): <[protocol://][user:password@]proxyhost[:port]>
0 commit comments