You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using PHP SDK and this HelloWorld example. I've set the log location with $dataService->setLogLocation("path/to/my/log/dir") but I'm not seeing any logs. I am also calling $dataService->enableLog() to make sure that logging is enabled. I've made sure the the directory has the correct permissions and even 777'd it and still no luck. The only way I've been able to get this to work is by hacking the core file at v3-php-sdk\src\Core\CoreConstants.php and changing const DEFAULT_LOGGINGLOCATION = "/tmp/IdsLogs"; to my log location. That obviously won't be acceptable on a production environment. Am I missing something here?
The text was updated successfully, but these errors were encountered:
So I did figure out that setting the following properties directly does work:
$serviceContext = $dataService->getServiceContext();
$serviceContext->IppConfiguration->Logger->RequestLog->EnableRequestResponseLogging = true;
$serviceContext->IppConfiguration->Logger->RequestLog->ServiceRequestLoggingLocation = "/path/to/dir";
So there seems to be an issue with setLogLocation() somewhere in the mess.
I'm using PHP SDK and this HelloWorld example. I've set the log location with $dataService->setLogLocation("path/to/my/log/dir") but I'm not seeing any logs. I am also calling $dataService->enableLog() to make sure that logging is enabled. I've made sure the the directory has the correct permissions and even 777'd it and still no luck. The only way I've been able to get this to work is by hacking the core file at v3-php-sdk\src\Core\CoreConstants.php and changing const DEFAULT_LOGGINGLOCATION = "/tmp/IdsLogs"; to my log location. That obviously won't be acceptable on a production environment. Am I missing something here?
The text was updated successfully, but these errors were encountered: