| 
					
				 | 
			
			
				@@ -1,15 +1,15 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.xxl.job.core.log; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.io.PrintWriter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.io.StringWriter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.text.SimpleDateFormat; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import java.util.Date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.slf4j.Logger; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.slf4j.LoggerFactory; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.slf4j.helpers.FormattingTuple; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.slf4j.helpers.MessageFormatter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.io.PrintWriter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.io.StringWriter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.text.SimpleDateFormat; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.Date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * Created by xuxueli on 17/4/28. 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -50,20 +50,20 @@ public class XxlJobLogger { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * append log with pattern 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     * @param appendLogPattern  like "aaa {0} bbb {1} ccc" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @param appendLogPattern  like "aaa {} bbb {} ccc" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      * @param appendLogArguments    like "111, true" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public static void log(String appendLogPattern, Object ... appendLogArguments) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     	FormattingTuple ft = MessageFormatter.format(appendLogPattern, appendLogArguments); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String appendLog = ft.getMessage(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        /*appendLog = appendLogPattern; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (appendLogArguments!=null && appendLogArguments.length>0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            appendLog = MessageFormat.format(appendLogPattern, appendLogArguments); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         StackTraceElement callInfo = new Throwable().getStackTrace()[1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        appendLog = appendLogPattern; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        if (appendLogArguments!=null && appendLogArguments.length>0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//            appendLog = MessageFormat.format(appendLogPattern, appendLogArguments); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         logDetail(callInfo, appendLog); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |