MediaWiki fundraising/REL1_35
|
Creates loggers and profilers for DonationInterface. More...
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. | |
Creates loggers and profilers for DonationInterface.
Definition at line 11 of file DonationLoggerFactory.php.
|
static |
GatewayType | $adapter | Get settings from this instance |
string | $suffix | Append this string to the adapter identifier |
LogPrefixProvider | null | $prefixer | Optionally use this to override prefixing via the adapter. |
Definition at line 25 of file DonationLoggerFactory.php.
References GatewayType\getGlobal(), getLoggerFromParams(), and GatewayType\getLogIdentifier().
Referenced by GatewayAdapter\__construct(), DonationData\__construct(), Gateway_Extras\__construct(), FraudFilter\__construct(), Gateway_Extras_CustomFilters_MinFraud\__construct(), BannerHistoryLogIdProcessor\__construct(), GatewayPage\execute(), ClientErrorApi\execute(), getProfiler(), Gateway_Form_Mustache\handleOptIn(), EmployerSearchAPI\initLogger(), Gateway_Extras_CustomFilters_IP_Velocity\penalize(), DonationApiBase\serializeErrors(), and IngenicoMethodCodec\stage().
|
static |
Get a logger without an adapter instance.
string | $adapterType | |
string | $prefix |
Definition at line 44 of file DonationLoggerFactory.php.
References getLoggerFromParams().
Referenced by GatewayChooser\__construct(), GatewayPage\execute(), and Amount\format().
|
static |
Definition at line 59 of file DonationLoggerFactory.php.
References $debug, and $overrideLogger.
Referenced by CiviproxyConnect\getEmailPreferences(), getLogger(), getLoggerForType(), and EmailPreferences\paramsForPreferencesForm().
|
static |
Retrieve a profiler instance which saves communication statistics if the adapter's SaveCommStats global is set to true.
GatewayType | $adapter |
Definition at line 92 of file DonationLoggerFactory.php.
References GatewayType\getGatewayName(), GatewayType\getGlobal(), and getLogger().
Referenced by GatewayAdapter\__construct().
|
static |
For use by test harnesses to override the instance returned.
Definition at line 16 of file DonationLoggerFactory.php.
Referenced by getLoggerFromParams().