forked from LiveCarta/PayPal-PHP-SDK
Updates to Logging
- Logging Level DEBUG introduced - Logging Level FINE deprecated to INFO - Logging Level restricted to INFO in live environments - Warning on using DEBUG in live environments - Fixes #215. Not Entirely, but one step ahead
This commit is contained in:
@@ -74,7 +74,7 @@ function getApiContext($clientId, $clientSecret)
|
||||
'mode' => 'sandbox',
|
||||
'log.LogEnabled' => true,
|
||||
'log.FileName' => '../PayPal.log',
|
||||
'log.LogLevel' => 'FINE',
|
||||
'log.LogLevel' => 'DEBUG', // PLEASE USE `FINE` LEVEL FOR LOGGING IN LIVE ENVIRONMENTS
|
||||
'validation.level' => 'log',
|
||||
'cache.enabled' => true,
|
||||
// 'http.CURLOPT_CONNECTTIMEOUT' => 30
|
||||
|
||||
@@ -33,10 +33,15 @@ log.LogEnabled=true
|
||||
; path here
|
||||
log.FileName=../PayPal.log
|
||||
|
||||
; Logging level can be one of FINE, INFO, WARN or ERROR
|
||||
; Logging is most verbose in the 'FINE' level and
|
||||
; Logging level can be one of
|
||||
; Sandbox Environments: DEBUG, INFO, WARN, ERROR
|
||||
; Live Environments: INFO, WARN, ERROR
|
||||
; Logging is most verbose in the 'DEBUG' level and
|
||||
; decreases as you proceed towards ERROR
|
||||
log.LogLevel=FINE
|
||||
; DEBUG level is disabled for live, to not log sensitive information.
|
||||
; If the level is set to DEBUG, it will be reduced to FINE automatically,
|
||||
; with a warning message
|
||||
log.LogLevel=INFO
|
||||
|
||||
;Validation Configuration
|
||||
[validation]
|
||||
|
||||
Reference in New Issue
Block a user