-
Notifications
You must be signed in to change notification settings - Fork 102
Logging
Logging allows developers to track activities happening inside the code. You could enable logging for PayPal SDK. The instructions to enable logging, or any other configuration is described in Adding Configuration Tutorial
NOTE: If you are looking for steps to inject your own logger object, please take a look at Custom Logger.
Recently, we have introduced DEBUG
level in Logging. We also deprecated FINE
level. Also, Logging modes will depend on mode
, which represents if the call will be made to sandbox or live. Here are the options:
Please note that logging with DEBUG level prints request, response and headers. Please make sure you use INFO, ERROR or WARNING level for live environments, and use DEBUG with extreme caution, in sandbox mode.
-
log.LogEnabled
- Options : true, false
- Enables Logging
-
log.FileName
- When using a relative path, the log file is created relative to the .php file that is the entry point for this request. You can also provide an absolute path here
-
log.LogLevel
- Logging level options are based on mode on which SDK is running. Please refer to Logging Levels section of this page to determine. Logging is most verbose in the
DEBUG
level and decreases as you proceed towardsERROR
.WARNING
orERROR
would be a recommended option for live environments.
- Logging level options are based on mode on which SDK is running. Please refer to Logging Levels section of this page to determine. Logging is most verbose in the
- Sandbox Mode
-
DEBUG
,INFO
,WARNING
,ERROR
. - Please note that,
DEBUG
is only allowed insandbox
mode. It will throw a warning, and reduce the level toINFO
if set inlive
mode.
-
- Live Mode
-
INFO
,WARNING
,ERROR
-
mode is not allowed in live environment. It will throw a warning, and reduce the level toDEBUG
INFO
if set inlive
mode.
-
Getting Started
Using Our SDK
Configurations
Extras
External Links