Logging

The SDK logs into the Android default logger with the WPT tag.

You can control the log level via WPTLogger.verboseLevel.

Log levels are:

/** No logging. */
NONE
        
/** Log only errors. */
ERROR
        
/** Log errors and warnings. */
WARNING
        
/** Log errors, warnings, and info. */
INFO
        
/** Log everything. */
DEBUG

Log Listener

The WPTLogger class offers a static logListener property. If you provide a listener, all logs will also be passed to it (the library always logs into the Android default log).

Log listener comes in handy when you want to log into a file or some online service.

Last updated on May 09, 2024 (13:32) Edit on Github Send Feedback
Search

1.0.2

Proximity Transfer for Android