Commit 9b169a53 authored by yanzg's avatar yanzg

修改日志打印功能,打印更加详细的日志

parent 47c02bfc
...@@ -3,6 +3,7 @@ package com.yanzuoguang.cloud; ...@@ -3,6 +3,7 @@ package com.yanzuoguang.cloud;
import com.yanzuoguang.util.YzgError; import com.yanzuoguang.util.YzgError;
import com.yanzuoguang.util.helper.DateHelper; import com.yanzuoguang.util.helper.DateHelper;
import com.yanzuoguang.util.helper.StringHelper; import com.yanzuoguang.util.helper.StringHelper;
import com.yanzuoguang.util.log.Log;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
...@@ -163,4 +164,17 @@ public class CloudConfig { ...@@ -163,4 +164,17 @@ public class CloudConfig {
public int getLogCountTime() { public int getLogCountTime() {
return logCountTime; return logCountTime;
} }
/**
* 开始写入日志
*
* @param cls 类型
* @param msg 日志内容
* @param args 日志参数
*/
public void info(Class<?> cls, String msg, Object... args) {
if (isLogCommon()) {
Log.info(cls, msg, args);
}
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment