Logging and Troubleshooting

perimeterx-java-sdk is using SLF4J and Logback for logs. If you wish to use a basic logger, which uses System.out and System.err to print debug and error respectively, change the value of the static variable to your desired level.

This method can be executed once; there is no need to execute it every request.

1import com.perimeterx.models.configuration.PXConfiguration;
2import com.perimeterx.utils.LoggerSeverity;
3
4PXConfiguration.setPxLoggerSeverity(LoggerSeverity.DEBUG);