本文整理了Java中com.orhanobut.logger.Logger.i()
方法的一些代码示例,展示了Logger.i()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.i()
方法的具体详情如下:
包路径:com.orhanobut.logger.Logger
类名称:Logger
方法名:i
暂无
代码示例来源:origin: jaydenxiao2016/AndroidFire
public static void logi(String message, Object... args) {
if (DEBUG_ENABLE) {
Logger.i(message, args);
}
}
public static void logv(String message, Object... args) {
代码示例来源:origin: huangfangyi/YiChat
public static void i(String tag, String message) {
Logger.init(tag)
.methodCount(METHOD_COUNT)
.logLevel(LOG_LEVEL)
.methodOffset(METHOD_OFFSET);
Logger.i(message);
}
代码示例来源:origin: Rukey7/MvpApp
Logger.i(datas.toString());
int size = datas.size();
for (int i = 0; i < size; i++) {
代码示例来源:origin: Rukey7/MvpApp
/**
* 处理富文本包含图片的情况
*
* @param newsDetailBean 原始数据
*/
private void _handleRichTextWithImg(NewsDetailInfo newsDetailBean) {
if (!ListUtils.isEmpty(newsDetailBean.getImg())) {
String body = newsDetailBean.getBody();
for (NewsDetailInfo.ImgEntity imgEntity : newsDetailBean.getImg()) {
String ref = imgEntity.getRef();
String src = imgEntity.getSrc();
String img = HTML_IMG_TEMPLATE.replace("http", src);
body = body.replaceAll(ref, img);
Logger.w(img);
Logger.i(body);
}
newsDetailBean.setBody(body);
}
}
}
代码示例来源:origin: Rukey7/MvpApp
/**
* 处理富文本包含图片的情况
* @param newsDetailBean 原始数据
*/
private void _handleRichTextWithImg(NewsDetailInfo newsDetailBean) {
if (!ListUtils.isEmpty(newsDetailBean.getImg())) {
String body = newsDetailBean.getBody();
for (NewsDetailInfo.ImgEntity imgEntity : newsDetailBean.getImg()) {
String ref = imgEntity.getRef();
String src = imgEntity.getSrc();
String img = HTML_IMG_TEMPLATE.replace("http", src);
body = body.replaceAll(ref, img);
Logger.w(img);
Logger.i(body);
}
newsDetailBean.setBody(body);
}
}
}
代码示例来源:origin: Rukey7/MvpApp
/**
* 处理选中事件
* @param position
* @param isChecked
*/
protected void _handleCheckedChanged(int position, boolean isChecked) {
if (position == INVALID_POS) {
Logger.i(position + "" + isChecked);
return;
}
mSparseItemChecked.put(position, isChecked);
int checkedCount = 0;
int checkedStatus;
for (int i = 0; i < getItemCount(); i++) {
if (mSparseItemChecked.get(i, false)) {
checkedCount++;
}
}
if (checkedCount == 0) {
checkedStatus = VideoEvent.CHECK_NONE;
} else if (checkedCount == getItemCount()) {
checkedStatus = VideoEvent.CHECK_ALL;
} else {
checkedStatus = VideoEvent.CHECK_SOME;
}
// 通知 DownloadActivity 更新界面
mRxBus.post(new VideoEvent(checkedStatus));
}
代码示例来源:origin: orhanobut/logger
Logger.i("no thread info and method info");
代码示例来源:origin: dongjunkun/GanK
@Override
public Response intercept(Interceptor.Chain chain) throws IOException {
Request request = chain.request();
long t1 = System.nanoTime();
Logger.i(String.format("Sending request %s on %s%n%s",
request.url(), chain.connection(), request.headers()));
Response response = chain.proceed(request);
long t2 = System.nanoTime();
Logger.i(String.format("Received response for %s in %.1fms%n%s",
response.request().url(), (t2 - t1) / 1e6d, response.headers()));
return response;
}
}
代码示例来源:origin: GeekGhost/Ghost
private static void i(String className, String messageForI, Object... args) {
if (!BuildConfig.DEBUG) {
org.slf4j.Logger logger = getLoggerInstance(className);
if (logger == null) {
return;
}
logger.info(messageForI, args);
} else {
Logger.i(handleDebugLogFormat(messageForI), args);
}
}
代码示例来源:origin: xiaoxiangyeyuHeaven/HeavenlyModule
public static void logi(String message, Object... args) {
if (DEBUG_ENABLE) {
Logger.i(message, args);
}
}
public static void logv(String message, Object... args) {
代码示例来源:origin: mingjunli/GithubApp
/**
* log.i
* @param msg
*/
public static void i(String msg) {
if (BuildConfig.DEBUG) {
Logger.i(msg);
}
}
代码示例来源:origin: liuyanggithub/SuperMvp
/**
* 提示信息
*
* @param TAG
* @param msg
*/
public final static void i(String TAG, String msg) {
Logger.i(TAG, msg);
if (LOG_WRITE_TO_FILE)
writeLogtoFile("i", TAG, msg);
}
代码示例来源:origin: ahmedeltaher/MVP-Sample
public static void json(String tag, String massage) {
if (BuildConfig.DEBUG) {
Logger.i(tag);
Logger.json(massage);
}
}
}
代码示例来源:origin: XunMengWinter/Now
protected void showList() {
mRealmDbHelper.getFromDatabase(PAGE_SIZE, mPage++);
mAdapter.notifyDataSetChanged();
Logger.i("show list " + getClass().getSimpleName());
}
代码示例来源:origin: renyuneyun/Easer
@Override
public void onCreate() {
Logger.i("NotificationEventListenerService onCreate()");
super.onCreate();
IntentFilter filter = new IntentFilter();
filter.addAction(ACTION_LISTEN);
filter.addAction(ACTION_CANCEL);
LocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver(mReceiver, filter);
}
代码示例来源:origin: renyuneyun/Easer
@Override
public void onDestroy() {
Logger.i("NotificationEventListenerService onDestroy()");
super.onDestroy();
LocalBroadcastManager.getInstance(getApplicationContext()).unregisterReceiver(mReceiver);
if (dataList.size() > 0) {
Logger.w("Listener to notifications not cleaned up completely: %d left",
dataList.size());
}
}
代码示例来源:origin: aint/laverna-android
@Override
public boolean openDatabaseConnection() {
if (mDatabase != null) {
// Logger.init().methodCount(Thread.currentThread().getStackTrace().length);
Logger.w("Connection is already opened");
// Logger.init().methodCount(2);
return false;
}
mDatabase = DatabaseManager.getInstance().openConnection();
Logger.i("Connection is opened");
return true;
}
代码示例来源:origin: renyuneyun/Easer
protected void onSatisfied(@Nullable Bundle extras) {
Logger.i("Lotus for <%s> satisfied", scriptTree.getName());
satisfied = true;
String profileName = scriptTree.getProfile();
if (profileName != null) {
if (extras == null)
extras = new Bundle();
jobContainerLP.triggerProfile(profileName, scriptTree.getName(),
extras, scriptTree.getData().getDynamicsLink());
}
triggerAndPromote();
}
代码示例来源:origin: renyuneyun/Easer
@Override
public void onCreate() {
Logger.i("InterruptionFilterSwitcherService onCreate()");
super.onCreate();
LocalBroadcastManager.getInstance(getApplicationContext()).registerReceiver(mReceiver, mFilter);
}
代码示例来源:origin: renyuneyun/Easer
@Override
public void onDestroy() {
Logger.i("InterruptionFilterSwitcherService onDestroy()");
super.onDestroy();
LocalBroadcastManager.getInstance(getApplicationContext()).unregisterReceiver(mReceiver);
}
}
内容来源于网络,如有侵权,请联系作者删除!