code: private static int logger(int level, String message, Throwable throwable) {
  
          if (QuickUtils.shouldShowLogs()) {
              switch (level) {
  
                  case QuickUtils.DEBUG:
                      return android.util.Log.d(QuickUtils.TAG, message, throwable);
                  case QuickUtils.VERBOSE:
                      return android.util.Log.v(QuickUtils.TAG, message, throwable);
                  case QuickUtils.INFO:
                      return android.util.Log.i(QuickUtils.TAG, message, throwable);
                  case QuickUtils.WARN:
                      return android.util.Log.w(QuickUtils.TAG, message, throwable);
                  case QuickUtils.ERROR:
                      return android.util.Log.e(QuickUtils.TAG, message, throwable);
                  default:
                      break;
              }
          }
  
          return -1;
      }
docs: Private Logger function to handle Log calls
  
  @param level     level of the log message
  @param message   log output
  @param throwable