public final class Logs extends Object implements ILog
LOG_OUT_DIR, MODULE_NAME
Modifier and Type | Method and Description |
---|---|
void |
close() |
static ILog |
get() |
ILogConfig |
getConfig()
获取日志记录器配置
|
ILogger |
getLogger()
获取默认日志记录器
|
ILogger |
getLogger(Class<?> clazz)
获取指定类名称的日志记录器
|
ILogger |
getLogger(String loggerName)
获取指定名称的日志记录器
|
void |
initialize()
初始化
|
boolean |
isInitialized()
是否已初始化
|
public static ILog get()
public void initialize() throws Exception
ILog
initialize
in interface ILog
Exception
- 初始过程中产生的任何异常public boolean isInitialized()
ILog
isInitialized
in interface ILog
public void close()
close
in interface AutoCloseable
public ILogConfig getConfig()
ILog
public ILogger getLogger(String loggerName) throws Exception
ILog
Copyright © 2022. All rights reserved.