gkralik / php7-sapnwrfc

SAP NW RFC SDK extension for PHP 7.3+ & PHP 8
https://gkralik.github.io/php7-sapnwrfc
MIT License
90 stars 35 forks source link

Change trace directory and level at runtime #17

Closed ThaDafinser closed 8 years ago

ThaDafinser commented 8 years ago

https://scn.sap.com/thread/1822094

To change the trace dir, i've done this ugly thing in the PHP5 extension

        $cwd = getcwd();
        chdir('../my-log-dir');
        try {
            $conn = new sapnwrfc($options);
        } finally {
            chdir($cwd);
        }

Maybe adding the RfcResetTraceDir makes sense?

gkralik commented 8 years ago

Yes, I plan to add methods for setting the trace dir and level. It is on my TODO list :smile: