mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add method
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user