Skip to content

Commit

Permalink
Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrjozwiak committed Jan 8, 2019
1 parent 389c2a4 commit 792b20a
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,23 @@ All methods described in [tpay documentations](https://tpay.com/en/documentation
Example of usages: [Szkwal](tpayLibs/examples/Szkwal.php), [White Label](tpayLibs/examples/WhiteLabel.php)

##### DAC / Masspayment / Transaction API requests
## Logs
Library has own logging system to save all confirmations and notifications sent by Tpay.com server, outgoing requests and exceptions.
Be sure that file src/Logs directory is writable and add rule to Apache htaccess or NGINX to deny access to this area from browser.
The log files are created for each day separately under 'Logs' directory.

Example of usages: [DAC](tpayLibs/examples/Dac.php), [Masspayment and Transaction API](tpayLibs/examples/MassPayment.php)
The logging is enabled by default but you can switch this feature by command:

Library has own logging system to save all confirmations and notifications sent by Tpay.com server
Be sure that file src/log is writable and add rule to htaccess to deny access to this file from browser
```php
Util::$loggingEnabled = false;
```

You can also set your own logging path by this command:

```php
Util::$customLogPatch = '/my/own/path/Logs/';
```
The logs file names will be assigned automatically.

## Requirements

Expand Down

0 comments on commit 792b20a

Please sign in to comment.