com.orhanobut.logger.Logger.d()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(342)

本文整理了Java中com.orhanobut.logger.Logger.d()方法的一些代码示例,展示了Logger.d()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.d()方法的具体详情如下:
包路径:com.orhanobut.logger.Logger
类名称:Logger
方法名:d

Logger.d介绍

暂无

代码示例

代码示例来源:origin: jaydenxiao2016/AndroidFire

public static void logd(String message) {
  if (DEBUG_ENABLE) {
    Logger.d(message);
  }
}
public static void loge(Throwable throwable, String message, Object... args) {

代码示例来源:origin: jaydenxiao2016/AndroidFire

public static void logd(String tag,String message) {
  if (DEBUG_ENABLE) {
    Logger.d(tag,message);
  }
}
public static void logd(String message) {

代码示例来源:origin: Rukey7/MvpApp

/**
   * 切换 Item 的选中状态
   * @param position
   */
  public void toggleItemChecked(int position, BaseViewHolder holder) {
    boolean isChecked = mSparseItemChecked.get(position);
    Logger.d(position+""+!isChecked);
    holder.setChecked(R.id.cb_delete, !isChecked);
    _handleCheckedChanged(position, !isChecked);
    // 如果用 notifyItemChanged(),会有一闪的情况
//        notifyItemChanged(position);
  }

代码示例来源:origin: Rukey7/MvpApp

@Override
  public Response intercept(Chain chain) throws IOException {
    final Request request = chain.request();
    Buffer requestBuffer = new Buffer();
    if (request.body() != null) {
      request.body().writeTo(requestBuffer);
    } else {
      Logger.d("LogTAG", "request.body() == null");
    }
    //打印url信息
    Logger.w(request.url() + (request.body() != null ? "?" + _parseParams(request.body(), requestBuffer) : ""));
    final Response response = chain.proceed(request);
    return response;
  }
};

代码示例来源:origin: orhanobut/logger

Logger.d("message");
Logger.d(Arrays.asList("foo", "bar"));
map.put("key1", "value2");
Logger.d(map);

代码示例来源:origin: GeekGhost/Ghost

private static void d(String className, String messageForD, Object... args) {
  if (!BuildConfig.DEBUG) {
    org.slf4j.Logger logger = getLoggerInstance(className);
    if (logger == null) {
      return;
    }
    logger.debug(messageForD, args);
  } else {
    Logger.d(handleDebugLogFormat(messageForD), args);
  }
}

代码示例来源:origin: linglongxin24/DylanStepCount

/**
 * 监听时间变化提醒用户锻炼
 */
private void isCall() {
  String time = this.getSharedPreferences("share_date", Context.MODE_MULTI_PROCESS).getString("achieveTime", "21:00");
  String plan = this.getSharedPreferences("share_date", Context.MODE_MULTI_PROCESS).getString("planWalk_QTY", "7000");
  String remind = this.getSharedPreferences("share_date", Context.MODE_MULTI_PROCESS).getString("remind", "1");
  Logger.d("time=" + time + "\n" +
      "new SimpleDateFormat(\"HH: mm\").format(new Date()))=" + new SimpleDateFormat("HH:mm").format(new Date()));
  if (("1".equals(remind)) &&
      (CURRENT_STEP < Integer.parseInt(plan)) &&
      (time.equals(new SimpleDateFormat("HH:mm").format(new Date())))
      ) {
    remindNotify();
  }
}

代码示例来源:origin: linglongxin24/DylanStepCount

Logger.d("tempStep" + tempStep);
} else if (stepSensorType == Sensor.TYPE_STEP_DETECTOR) {
  if (event.values[0] == 1.0) {

代码示例来源:origin: linglongxin24/DylanStepCount

@Override
public void onDestroy() {
  super.onDestroy();
  //取消前台进程
  stopForeground(true);
  DbUtils.closeDb();
  unregisterReceiver(mBatInfoReceiver);
  Logger.d("stepService关闭");
}

代码示例来源:origin: linglongxin24/DylanStepCount

private void initData() {
  setEmptyView(lv);
  if(DbUtils.getLiteOrm()==null){
    DbUtils.createDb(this, "jingzhi");
  }
  List<StepData> stepDatas =DbUtils.getQueryAll(StepData.class);
  Logger.d("stepDatas="+stepDatas);
  lv.setAdapter(new CommonAdapter<StepData>(this,stepDatas,R.layout.item) {
    @Override
    protected void convertView(View item, StepData stepData) {
      TextView tv_date= CommonViewHolder.get(item,R.id.tv_date);
      TextView tv_step= CommonViewHolder.get(item,R.id.tv_step);
      tv_date.setText(stepData.getToday());
      tv_step.setText(stepData.getStep()+"步");
    }
  });
}

代码示例来源:origin: androidmalin/RengwuxianRxjava

@Override
  public void call(Throwable throwable) {
    Logger.d("观察者:onErrorAction:call(Throwable throwable):" + throwable.getMessage());
  }
};

代码示例来源:origin: androidmalin/RengwuxianRxjava

@Override
  public void call(Throwable throwable) {
    Logger.d("观察者:onErrorAction:call(Throwable throwable):" + throwable.getMessage());
  }
};

代码示例来源:origin: androidmalin/RengwuxianRxjava

@Override
public void onCompleted() {
  if (mProgressBar != null) {
    mProgressBar.setVisibility(View.GONE);
  }
  Logger.d("观察者:onCompleted()");
}

代码示例来源:origin: androidmalin/RengwuxianRxjava

@Override
public void onCompleted() {
  if (mProgressBar != null) {
    mProgressBar.setVisibility(View.GONE);
  }
  Logger.d("观察者 onCompleted()");
  Toast.makeText(MainActivity.this, "观察者 onCompleted()", Toast.LENGTH_SHORT).show();
}

代码示例来源:origin: androidmalin/RengwuxianRxjava

@Override
  public void onNext(Drawable drawable) {
    Toast.makeText(MainActivity.this, "观察者 onNext()", Toast.LENGTH_SHORT).show();
    Logger.d("观察者 onNext()");
    if (mImageView == null || drawable == null) return;
    mImageView.setImageDrawable(drawable);
  }
});

代码示例来源:origin: androidmalin/RengwuxianRxjava

@Override
public void onError(Throwable e) {
  if (mProgressBar != null) {
    mProgressBar.setVisibility(View.GONE);
  }
  Logger.d("观察者 onError()");
  Toast.makeText(MainActivity.this, "观察者 onError() " + e.getMessage(), Toast.LENGTH_SHORT).show();
}

代码示例来源:origin: androidmalin/RengwuxianRxjava

@Override
public void onError(Throwable e) {
  if (mProgressBar != null) {
    mProgressBar.setVisibility(View.GONE);
  }
  Toast.makeText(MainActivity.this, "" + e.getMessage(), Toast.LENGTH_SHORT).show();
  Logger.d("观察者:onError(Throwable e):" + e.getMessage());
}

代码示例来源:origin: androidmalin/RengwuxianRxjava

private void method8() {
  ArrayList<Student> students = DataFactory.getData();
  int size = students.size();
  for (int i = 0; i < size; i++) {
    Logger.d("姓名:" + students.get(i).name);
    int sizeCourses = students.get(i).courses.size();
    for (int j = 0; j < sizeCourses; j++) {
      Logger.d("课程:" + students.get(i).courses.get(j).name);
    }
  }
}

代码示例来源:origin: liuyanggithub/SuperMvp

@Override
  public void onFailure(Throwable t) {
    viewDelegate.showSnackbar("请求错误");
    Logger.d("onFailure");
  }
});

代码示例来源:origin: liuyanggithub/SuperMvp

/**
 * 调试信息
 *
 * @param TAG
 * @param msg
 */
public final static void d(String TAG, String msg) {
  Logger.d(TAG, msg);
  if (LOG_WRITE_TO_FILE)
    writeLogtoFile("d", TAG, msg);
}

相关文章