mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -20,7 +20,7 @@ public class GlobalLogFactory {
|
||||
if (null == currentLogFactory) {
|
||||
synchronized (lock) {
|
||||
if (null == currentLogFactory) {
|
||||
currentLogFactory = LogFactory.create();
|
||||
currentLogFactory = LogFactory.of();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -156,7 +156,7 @@ public abstract class LogFactory {
|
||||
*
|
||||
* @return 日志实现类
|
||||
*/
|
||||
public static LogFactory create() {
|
||||
public static LogFactory of() {
|
||||
final LogFactory factory = doCreate();
|
||||
factory.getLog(LogFactory.class).debug("Use [{}] Logger As Default.", factory.name);
|
||||
return factory;
|
||||
|
@@ -121,7 +121,7 @@ public class ConsoleLog extends AbstractLog {
|
||||
}
|
||||
|
||||
|
||||
final Dict dict = Dict.create()
|
||||
final Dict dict = Dict.of()
|
||||
.set("date", DateUtil.formatNow())
|
||||
.set("level", level.toString())
|
||||
.set("name", this.name)
|
||||
|
Reference in New Issue
Block a user