SilverStripe\Omnipay\Helper\Logging
Synopsis
class Logging
{
- // constants
- const LOGSTYLE_VERBOSE = 'verbose';
- const LOGSTYLE_SIMPLE = 'simple';
- const LOGSTYLE_FULL = 'full';
- // members
- private static string $logStyle = 'verbose';
- private static array $loggingBlacklist = ;
- // methods
- public static LoggerInterface getLogger()
- public static LoggerInterface getExceptionLogger()
- public static array prepareForLogging()
- private static void sanitize()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
Constants
Name | Value |
---|---|
LOGSTYLE_VERBOSE | 'verbose' |
LOGSTYLE_SIMPLE | 'simple' |
LOGSTYLE_FULL | 'full' |
Members
private
- $logStyle
—
string
The Gateway-Data logging style. Can be one of the following: - 'full': Verbose logging, log all information. This will automatically turn into 'verbose' on a live environment! - 'verbose': Verbose logging, but strips out sensitive information - 'simple': Simplified messages - $loggingBlacklist
—
array
Field-Names that should be removed from the log
Methods
private
- sanitize() — Clean out sensitive data, such as credit-card numbers
public
- getExceptionLogger()
- getLogger() — Get a logger
- prepareForLogging() — Prepare data for logging by cleaning up the data or simplify it.