This commit is contained in:
Looly
2020-04-11 13:08:46 +08:00
parent 73fd3b849f
commit bc486cdac4
207 changed files with 1329 additions and 1355 deletions

View File

@@ -24,7 +24,7 @@ public abstract class LogFactory {
/**
* 日志对象缓存
*/
private Map<Object, Log> logCache;
private final Map<Object, Log> logCache;
/**
* 构造

View File

@@ -19,7 +19,7 @@ public class ConsoleLog extends AbstractLog {
private static final String logFormat = "[{date}] [{level}] {name}: {msg}";
private static Level currentLevel = Level.DEBUG;
private String name;
private final String name;
//------------------------------------------------------------------------- Constructor

View File

@@ -161,7 +161,6 @@ public class Slf4jLog extends AbstractLog {
* @param t 异常
* @param msgTemplate 消息模板
* @param arguments 参数
* @return 是否支持 LocationAwareLogger对象如果不支持需要日志方法调用被包装类的相应方法
*/
private void locationAwareLog(LocationAwareLogger logger, String fqcn, int level_int, Throwable t, String msgTemplate, Object[] arguments) {
// ((LocationAwareLogger)this.logger).log(null, fqcn, level_int, msgTemplate, arguments, t);

View File

@@ -20,8 +20,8 @@ public class TinyLog extends AbstractLog {
/** 堆栈增加层数,因为封装因此多了两层,此值用于正确获取当前类名 */
private static final int DEPTH = 4;
private int level;
private String name;
private final int level;
private final String name;
// ------------------------------------------------------------------------- Constructor
public TinyLog(Class<?> clazz) {