Use Logger::LogToFile and disable the standard logging in soap_xml.log

176 views
Skip to first unread message

abc def

unread,
Feb 13, 2015, 10:06:56 AM2/13/15
to adwor...@googlegroups.com
Hi,

i am using the adwords API PHP Library v201406 (i know there is a newer version) and i implement the following lines to log every api request in a new file:

$user->LogAll()
[...]
\Logger::LogToFile(\Logger::$SOAP_XML_LOG, 'filename.log');

This works fine, but there is the standard logging file soap_xml.log, too.
I would like to disable the standard logging file. How to do?

Greetings from Germany,
Christian

Josh Radcliff (AdWords API Team)

unread,
Feb 13, 2015, 1:39:43 PM2/13/15
to adwor...@googlegroups.com
Hi Christian,

I'm not a PHP expert, but looking through Logger.php and AdWordsUser.php, I don't see a way to remove a log destination, since Logger.LogTo always appends the specified logger.

However, you can configure the log directory globally in your settings.ini file.

Hope that helps,

Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages