How to use LoggerInterface google ads php lib

20 views
Skip to first unread message

cv

unread,
Jul 3, 2019, 9:40:57 AM7/3/19
to AdWords API and Google Ads API Forum
hi,

How I can use LoggerInterface to log in details.
Logging guide is limited and not explain how to use same

I tried this
     $log = new Logger('TestChanel');
        $stream = new StreamHandler('file.log', Logger::ERROR);
        $stream->setFormatter(new LineFormatter(null, null, false, true));
        $log->pushHandler($stream);

$googleAdsClient = (new GoogleAdsClientBuilder())
                ->withOAuth2Credential(XX)
                ->withLoginCustomerId('XXXX')
                ->withLogger($log)
                ->build();

Thanks,

Google Ads API Forum Advisor Prod

unread,
Jul 4, 2019, 2:24:46 AM7/4/19
to adwor...@googlegroups.com

Hi,

Thank you for reaching out. 

My apologies as your concern appears to be related to the PHP client library. The client library owners would be able to assist you better on your concern. You may open your concern in the PHP GitHub Issue Tracker.

Regards,
Dannison
Google Ads API Team



ref:_00D1U1174p._5001UCapNI:ref
Reply all
Reply to author
Forward
0 new messages