From 2242a796345bceb301cf3e2094f2a4871cb81cb6 Mon Sep 17 00:00:00 2001
From: yy1717 <fctom1215@outlook.com>
Date: 星期四, 13 八月 2020 18:22:25 +0800
Subject: [PATCH] Merge branch 'master' of https://gitee.com/endian11/DriveJudge
---
BaseCommonLib/src/main/java/com/anyun/basecommonlib/MyLog.java | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/im_lib/src/main/java/com/anyun/im_lib/util/MyLog.java b/BaseCommonLib/src/main/java/com/anyun/basecommonlib/MyLog.java
similarity index 96%
rename from im_lib/src/main/java/com/anyun/im_lib/util/MyLog.java
rename to BaseCommonLib/src/main/java/com/anyun/basecommonlib/MyLog.java
index 6ebeba7..8823f54 100644
--- a/im_lib/src/main/java/com/anyun/im_lib/util/MyLog.java
+++ b/BaseCommonLib/src/main/java/com/anyun/basecommonlib/MyLog.java
@@ -1,4 +1,4 @@
-package com.anyun.im_lib.util;
+package com.anyun.basecommonlib;
@@ -31,7 +31,7 @@
public class MyLog {
- private static final String TAG = "AYJiaKao";
+ private static final String TAG = "AYJiaKao";
// 鏃ュ織鏂囦欢鍦╯dcard涓殑璺緞
@@ -40,7 +40,7 @@
private static Boolean MYLOG_SWITCH = true; // 鏃ュ織鏂囦欢鎬诲紑鍏�
- private static Boolean MYLOG_WRITE_TO_FILE = true;// 鏃ュ織鍐欏叆鏂囦欢寮�鍏�
+ private static Boolean MYLOG_WRITE_TO_FILE = false;// 鏃ュ織鍐欏叆鏂囦欢寮�鍏�
private static File file;
// 杈撳叆鏃ュ織绫诲瀷锛寃浠h〃鍙緭鍑哄憡璀︿俊鎭瓑锛寁浠h〃杈撳嚭鎵�鏈変俊鎭�
@@ -273,7 +273,7 @@
* @param text
*/
static int count=0;
- private static void writeLogtoFile( final String tag, final String text) {// 鏂板缓鎴栨墦寮�鏃ュ織鏂囦欢
+ private static synchronized void writeLogtoFile( final String tag, final String text) {// 鏂板缓鎴栨墦寮�鏃ュ織鏂囦欢
String needWriteMessage = myLogSdf.format(System.currentTimeMillis()) + " " + tag + " " + text;
@@ -316,7 +316,6 @@
File tempFile = null;
for (int j = 0; j < 5; j++) {
tempFile = new File(dirPath,PREFREIX+j+".txt");
- Log.i(TAG,"tempFIle Name= "+tempFile.getName());
if (tempFile.length()>20*1024*1024) {
if (j==4){
@@ -334,7 +333,7 @@
}else{
- Log.i(TAG,String.format("杩斿洖鏂囦欢%s",tempFile.getName()));
+// Log.i(TAG,String.format("杩斿洖鏂囦欢%s",tempFile.getName()));
break;
}
--
Gitblit v1.8.0