This commit is contained in:
Looly
2022-06-21 18:42:52 +08:00
parent 8080a1cd83
commit 1ee014bdae
123 changed files with 275 additions and 270 deletions

View File

@@ -20,7 +20,7 @@ public class GlobalLogFactory {
if (null == currentLogFactory) {
synchronized (lock) {
if (null == currentLogFactory) {
currentLogFactory = LogFactory.create();
currentLogFactory = LogFactory.of();
}
}
}

View File

@@ -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;

View File

@@ -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)