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
+4-8Lines changed: 4 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Install the latest version with `composer require stackify/logger`
15
15
16
16
There are three different transport options that can be configured to send data to Stackify. Below will show how to implement the different transport options:
17
17
18
-
###ExecTransport:
18
+
###ExecTransport
19
19
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):
20
20
21
21
```php
@@ -26,7 +26,7 @@ $transport = new ExecTransport('api_key');
26
26
$logger = new Logger('application_name', 'environment_name', $transport);
27
27
```
28
28
29
-
####Configuration:
29
+
####Configuration
30
30
<b>Proxy</b>
31
31
- ExecTransport supports data delivery through proxy. Specify proxy using [libcurl format](http://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html): <[protocol://][user:password@]proxyhost[:port]>
32
32
```php
@@ -48,7 +48,7 @@ $transport = new CurlTransport('api_key');
48
48
$logger = new Logger('application_name', 'environment_name', $transport);
49
49
```
50
50
51
-
####Configuration:
51
+
####Configuration
52
52
<b>Proxy</b>
53
53
- CurlTransport supports data delivery through proxy. Specify proxy using [libcurl format](http://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html): <[protocol://][user:password@]proxyhost[:port]>
54
54
```php
@@ -61,12 +61,9 @@ use Stackify\Log\Standalone\Logger;
61
61
62
62
$logger = new Logger('appname.com');
63
63
```
64
-
####Configuration:
64
+
####Configuration
65
65
- You will need to enable the TCP listener by checking a checkbox in "Server Settings" in Stackify for your server on the Servers Page. You can also change the default behavior for all your servers by going to the [Log Collectors Page](http://docs.stackify.com/m/7787/l/302705-log-collectors).
66
66
67
-
68
-
69
-
70
67
## Troubleshooting
71
68
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).
72
69
Note that ExecTransport does not produce any errors at all, but you can switch it to debug mode:
@@ -78,7 +75,6 @@ By default handler requires [Stackify agent](https://stackify.screenstepslive.co
78
75
There are other ways to send data, read more in [Monolog package documentation](https://github.com/stackify/stackify-log-monolog),
79
76
all transports are available for standalone logger as well.
0 commit comments