53 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
| package com.ubt.jimu.utils;
 | ||
| 
 | ||
| import com.ubtrobot.log.ALog;
 | ||
| 
 | ||
| /* loaded from: classes2.dex */
 | ||
| public class LogUtils {
 | ||
|     static String a;
 | ||
|     static int b;
 | ||
| 
 | ||
|     private static String a(String str) {
 | ||
|         StringBuffer stringBuffer = new StringBuffer();
 | ||
|         stringBuffer.append("(");
 | ||
|         stringBuffer.append(a);
 | ||
|         stringBuffer.append(":");
 | ||
|         stringBuffer.append(b);
 | ||
|         stringBuffer.append(")");
 | ||
|         stringBuffer.append("  :");
 | ||
|         stringBuffer.append(str);
 | ||
|         return stringBuffer.toString();
 | ||
|     }
 | ||
| 
 | ||
|     public static boolean a() {
 | ||
|         return false;
 | ||
|     }
 | ||
| 
 | ||
|     public static void b(String str) {
 | ||
|         if (a()) {
 | ||
|             a(new Throwable().getStackTrace());
 | ||
|             ALog.a(a).d(a(str));
 | ||
|         }
 | ||
|     }
 | ||
| 
 | ||
|     public static void c(String str) {
 | ||
|         if (a()) {
 | ||
|             a(new Throwable().getStackTrace());
 | ||
|             ALog.a("TestLog").d(a(str));
 | ||
|         }
 | ||
|     }
 | ||
| 
 | ||
|     public static void d(String str) {
 | ||
|         if (a()) {
 | ||
|             a(new Throwable().getStackTrace());
 | ||
|             ALog.a(a).e(a(str), new Object[0]);
 | ||
|         }
 | ||
|     }
 | ||
| 
 | ||
|     private static void a(StackTraceElement[] stackTraceElementArr) {
 | ||
|         a = stackTraceElementArr[1].getFileName();
 | ||
|         stackTraceElementArr[1].getMethodName();
 | ||
|         b = stackTraceElementArr[1].getLineNumber();
 | ||
|     }
 | ||
| }
 |