set Log Level
Sets the current log level for TrustPin's internal logging system.
Logging helps with debugging certificate pinning issues and monitoring security events. Different log levels provide varying amounts of detail.
Log Levels
TrustPinLogLevel.NONE: No logging output
TrustPinLogLevel.ERROR: Only error messages
TrustPinLogLevel.INFO: Errors and informational messages
TrustPinLogLevel.DEBUG: All messages including detailed debug information
Example Usage
// Enable debug logging for development
TrustPin.setLogLevel(TrustPinLogLevel.DEBUG)
// Minimal logging for production
TrustPin.setLogLevel(TrustPinLogLevel.ERROR)
// Disable all logging
TrustPin.setLogLevel(TrustPinLogLevel.NONE)Content copied to clipboard
Performance Considerations
Production: Use TrustPinLogLevel.ERROR or TrustPinLogLevel.NONE to minimize performance impact
Development: Use TrustPinLogLevel.DEBUG for detailed troubleshooting information
Staging: Use TrustPinLogLevel.INFO for balanced logging without excessive detail
Parameters
level
The TrustPinLogLevel to use for filtering log messages