Skip to content

Commit e27c1ef

Browse files
committed
Update README.md
1 parent bc775d2 commit e27c1ef

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ 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-
### <a name="transport"></a>Transport options:
19-
2018
###ExecTransport:
2119
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):
2220

@@ -77,7 +75,15 @@ services:
7775
$transport = new CurlTransport($apiKey, ['proxy' => 'https://55.88.22.11:3128']);
7876
```
7977
###AgentTransport
80-
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.
78+
AgentTransport does not require additional configuration in your PHP code because all data is passed to the [Stackify agent](https://stackify.screenstepslive.com/s/3095/m/7787/l/119709-installation-for-linux). The agent must be installed on the same machine. Local TCP socket is used, so performance of your application is affected minimally.
79+
```php
80+
use Stackify\Log\Standalone\Logger;
81+
```
82+
####Configuration:
83+
- 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).
84+
85+
86+
8187

8288
## Troubleshooting
8389
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

Comments
 (0)