mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -24,7 +24,7 @@ public abstract class LogFactory {
|
||||
/**
|
||||
* 日志对象缓存
|
||||
*/
|
||||
private Map<Object, Log> logCache;
|
||||
private final Map<Object, Log> logCache;
|
||||
|
||||
/**
|
||||
* 构造
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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);
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user