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
+15-13Lines changed: 15 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@ There are three different transport options that can be configured to send data
17
17
18
18
### <aname="transport"></a>Transport options:
19
19
20
-
21
-
- <b>ExecTransport</b> does not require 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):
20
+
###ExecTransport:
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
22
```php
23
23
use Stackify\Log\Transport\ExecTransport;
24
24
use Stackify\Log\Monolog\Handler as StackifyHandler;
@@ -36,18 +36,20 @@ There are three different transport options that can be configured to send data
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]>
39
+
####Configuration:
40
+
<b>Proxy</b>
41
+
-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]>
42
42
```php
43
43
$transport = new ExecTransport($apiKey, ['proxy' => 'https://55.88.22.11:3128']);
44
44
```
45
-
####Curl path
46
-
It can be useful to specify ```curl``` destination path for ExecTransport. This option is set to 'curl' by default.
45
+
46
+
<b>Curl path</b>
47
+
- It can be useful to specify ```curl``` destination path for ExecTransport. This option is set to 'curl' by default.
47
48
```php
48
49
$transport = new ExecTransport($apiKey, ['curlPath' => '/usr/bin/curl']);
49
50
```
50
-
- <b>CurlTransport</b> 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):
51
+
###CurlTransport
52
+
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):
51
53
```php
52
54
use Stackify\Log\Transport\CurlTransport;
53
55
use Stackify\Log\Monolog\Handler as StackifyHandler;
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]>
70
+
####Configuration:
71
+
<b>Proxy</b>
72
+
-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]>
71
73
```php
72
74
$transport = new CurlTransport($apiKey, ['proxy' => 'https://55.88.22.11:3128']);
73
75
```
74
-
75
-
- <b>AgentTransport</b> does not require additional configuration on PHP side because all data is passed to the [Stackify agent](https://stackify.screenstepslive.com/s/3095/m/7787/l/119709-installation-for-linux), which must be installed on the same machine. Local TCP socket is used, so performance of your application is affected minimally.
76
+
###AgentTransport
77
+
AgentTransport does not require additional configuration on PHP side because all data is passed to the [Stackify agent](https://stackify.screenstepslive.com/s/3095/m/7787/l/119709-installation-for-linux), which must be installed on the same machine. Local TCP socket is used, so performance of your application is affected minimally.
76
78
77
79
## Troubleshooting
78
80
If transport does not work, try looking into ```vendor\stackify\logger\src\Stackify\debug\log.log``` file (if it is available for writing). Errors are also written to global PHP [error_log](http://php.net/manual/en/errorfunc.configuration.php#ini.error-log).
0 commit comments