\Google\AdsApi\CommonAdsLoggerFactory

Creates loggers configured for this library.

Summary

Methods
Properties
Constants
createLogger()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

createLogger()

createLogger(string  $channel,string|resource|null  $stream = null,string|integer|null  $level = null): \Psr\Log\LoggerInterface

Creates a Monolog logger with a stream handler configured for this library.

Parameters

string $channel

a description of what is being logged

string|resource|null $stream

the stream the logger will log to; if null, will log to STDERR

string|integer|null $level

the log level; can be a PSR3 log level string, or a Monolog log level int

Returns

\Psr\Log\LoggerInterface