Skip to content

Logging Data

Muhammad Umair Adil edited this page Sep 12, 2018 · 1 revision

Logging data to PLogs

To Log data to File simply call this:

    PLog.logThis(TAG, "buttonOnClick", "Log: " + Math.random(), LogLevel.INFO)

Log Exceptions to File:

Both Exceptions & Throwable can be passed to logger.

    PLog.logExc(TAG, "uncaughtException", e)

Exceptions & Throwable can be tagged as severe by adding LogLevel.SEVERE:

    PLog.logExc(TAG, "uncaughtException", e, LogLevel.SEVERE)