TrustPinLogLevel

Log levels for TrustPin SDK logging.

This enum defines the available logging levels for the TrustPin SDK, allowing developers to control the verbosity of log output for debugging, monitoring, and troubleshooting. Log levels are hierarchical - each level includes all messages from higher priority levels.

Log Level Hierarchy

From highest to lowest priority:

  1. ERROR - Critical errors and failures

  2. INFO - General information and important events

  3. DEBUG - Detailed debugging information

  4. NONE - No logging (disables all output)

Usage Examples

Production Environment

TrustPin.setLogLevel(TrustPinLogLevel.ERROR) // Only critical errors

Development Environment

TrustPin.setLogLevel(TrustPinLogLevel.DEBUG) // All log messages

Staging Environment

TrustPin.setLogLevel(TrustPinLogLevel.INFO) // Errors and general info

Performance Considerations

  • Production: Use ERROR or NONE to minimize performance impact

  • Development: Use DEBUG for comprehensive troubleshooting

  • Staging: Use INFO for balanced monitoring without excessive verbosity

Security Considerations

  • Lower log levels may expose sensitive information in logs

  • Review log content before enabling verbose logging in production

  • Consider log retention and access policies when setting log levels

See also

Entries

Link copied to clipboard

Disables all logging output.

Link copied to clipboard

Logs only error messages and critical failures.

Link copied to clipboard

Logs error and informational messages.

Link copied to clipboard

Logs all messages including detailed debug information.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.