Skip to content

Commit 036e132

Browse files
committed
Update README.md
1 parent cabb480 commit 036e132

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Install the latest version with `composer require stackify/logger`
1515

1616
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:
1717

18-
###ExecTransport:
18+
###ExecTransport
1919
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):
2020

2121
```php
@@ -26,7 +26,7 @@ $transport = new ExecTransport('api_key');
2626
$logger = new Logger('application_name', 'environment_name', $transport);
2727
```
2828

29-
####Configuration:
29+
####Configuration
3030
<b>Proxy</b>
3131
- 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]>
3232
```php
@@ -48,7 +48,7 @@ $transport = new CurlTransport('api_key');
4848
$logger = new Logger('application_name', 'environment_name', $transport);
4949
```
5050

51-
####Configuration:
51+
####Configuration
5252
<b>Proxy</b>
5353
- 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]>
5454
```php
@@ -61,12 +61,9 @@ use Stackify\Log\Standalone\Logger;
6161

6262
$logger = new Logger('appname.com');
6363
```
64-
####Configuration:
64+
####Configuration
6565
- 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).
6666

67-
68-
69-
7067
## Troubleshooting
7168
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).
7269
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
7875
There are other ways to send data, read more in [Monolog package documentation](https://github.com/stackify/stackify-log-monolog),
7976
all transports are available for standalone logger as well.
8077

81-
8278
## License
8379

8480
Copyright 2015 Stackify, LLC.

0 commit comments

Comments
 (0)