I am not aware of such function but maybe phpinfo();
will have some info about that?
Log paths are defined inside apache site's configuration file, if you want a custom path to it if not by default all the logs are loaded into /var/log/apache2/*.log, so php have nothing to do with it