Skip to content

Commit 201dbdd

Browse files
committed
Update BatchUploadApi.php
1 parent 84c9bc0 commit 201dbdd

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/Api/BatchUploadApi.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@ class BatchUploadApi
1515

1616
/**
1717
* BatchUploadApi constructor.
18+
*
19+
* Example usage with custom log configuration:
20+
* ```php
21+
* $logConfig = new \CyberSource\Logging\LogConfiguration();
22+
* $logConfig->enableLogging(true);
23+
* $logConfig->setDebugLogFile(__DIR__ . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "Log" . DIRECTORY_SEPARATOR . "debugTest.log");
24+
* $logConfig->setErrorLogFile(__DIR__ . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "Log" . DIRECTORY_SEPARATOR . "errorTest.log");
25+
* $logConfig->setLogDateFormat("Y-m-d\TH:i:s");
26+
* $logConfig->setLogFormat("[%datetime%] [%level_name%] [%channel%] : %message%\n");
27+
* $logConfig->setLogMaxFiles(3);
28+
* $logConfig->setLogLevel("debug");
29+
* $logConfig->enableMasking(true);
30+
* $api = new \CyberSource\Api\BatchUploadApi($logConfig);
31+
* ```
32+
*
1833
* @param LogConfiguration|null $logConfig
1934
*/
2035
public function __construct($logConfig = null)

0 commit comments

Comments
 (0)