File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments