public class GlobalLogFactory extends Object
Constructor and Description |
---|
GlobalLogFactory() |
Modifier and Type | Method and Description |
---|---|
static LogFactory |
get()
获取单例日志工厂类,如果不存在创建之
|
static LogFactory |
set(Class<? extends LogFactory> logFactoryClass)
自定义日志实现
|
static LogFactory |
set(LogFactory logFactory)
自定义日志实现
|
public static LogFactory get()
public static LogFactory set(Class<? extends LogFactory> logFactoryClass)
logFactoryClass
- 日志工厂类Slf4jLogFactory
,
Log4jLogFactory
,
Log4j2LogFactory
,
ApacheCommonsLogFactory
,
JdkLogFactory
,
ConsoleLogFactory
public static LogFactory set(LogFactory logFactory)
logFactory
- 日志工厂类对象Slf4jLogFactory
,
Log4jLogFactory
,
Log4j2LogFactory
,
ApacheCommonsLogFactory
,
JdkLogFactory
,
ConsoleLogFactory
Copyright © 2024. All rights reserved.