From 792b20a8fca0816e0f3d028c0c89157ebe4bf0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20J=C3=B3=C5=BAwiak?= Date: Tue, 8 Jan 2019 13:53:44 +0100 Subject: [PATCH] Readme update --- README.md | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index aadb353..dae9a9d 100644 --- a/README.md +++ b/README.md @@ -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