MediaWiki fundraising/REL1_35
DonationLoggerFactory Class Reference

Creates loggers and profilers for DonationInterface. More...

Collaboration diagram for DonationLoggerFactory:

Static Public Member Functions

static getLogger (GatewayType $adapter, $suffix='', LogPrefixProvider $prefixer=null)
 
static getLoggerForType ( $adapterType, $prefix='')
 Get a logger without an adapter instance.
 
static getLoggerFromParams ( $identifier, $useSyslog, $debug, $suffix, $prefixer)
 
static getProfiler (GatewayType $adapter)
 Retrieve a profiler instance which saves communication statistics if the adapter's SaveCommStats global is set to true.
 

Static Public Attributes

static Psr Log LoggerInterface $overrideLogger = null
 For use by test harnesses to override the instance returned.
 

Detailed Description

Creates loggers and profilers for DonationInterface.

Author
Elliott Eggleston eeggl.nosp@m.esto.nosp@m.n@wik.nosp@m.imed.nosp@m.ia.or.nosp@m.g

Definition at line 11 of file DonationLoggerFactory.php.

Member Function Documentation

◆ getLogger()

static DonationLoggerFactory::getLogger ( GatewayType $adapter,
$suffix = '',
LogPrefixProvider $prefixer = null )
static

◆ getLoggerForType()

static DonationLoggerFactory::getLoggerForType ( $adapterType,
$prefix = '' )
static

Get a logger without an adapter instance.

Parameters
string$adapterType
string$prefix
Returns
\Psr\Log\LoggerInterface

Definition at line 44 of file DonationLoggerFactory.php.

References getLoggerFromParams().

Referenced by GatewayChooser\__construct(), GatewayPage\execute(), and Amount\format().

◆ getLoggerFromParams()

static DonationLoggerFactory::getLoggerFromParams ( $identifier,
$useSyslog,
$debug,
$suffix,
$prefixer )
static

◆ getProfiler()

static DonationLoggerFactory::getProfiler ( GatewayType $adapter)
static

Retrieve a profiler instance which saves communication statistics if the adapter's SaveCommStats global is set to true.

Parameters
GatewayType$adapter
Returns
DonationProfiler

Definition at line 92 of file DonationLoggerFactory.php.

References GatewayType\getGatewayName(), GatewayType\getGlobal(), and getLogger().

Referenced by GatewayAdapter\__construct().

Member Data Documentation

◆ $overrideLogger

Psr Log LoggerInterface DonationLoggerFactory::$overrideLogger = null
static

For use by test harnesses to override the instance returned.

Definition at line 16 of file DonationLoggerFactory.php.

Referenced by getLoggerFromParams().


The documentation for this class was generated from the following file: