add method

This commit is contained in:
Looly
2023-10-19 11:03:41 +08:00
parent af197ba753
commit b865d8b728
2 changed files with 23 additions and 2 deletions

View File

@@ -86,6 +86,16 @@ public class LogEngineFactory {
logEngine.createLog(LogEngineFactory.class).debug("Custom Use [{}] Logger.", logEngine.getName());
}
/**
* 创建指定日志实现引擎
*
* @param logEngineClass 引擎类
* @return {@link LogEngine}
*/
public static LogEngine createEngine(final Class<? extends LogEngine> logEngineClass) {
return ConstructorUtil.newInstance(logEngineClass);
}
/**
* 决定日志实现
* <p>