接口 LoggerAdapter
-
@SPI public interface LoggerAdapter
Logger provider
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 File
getFile()
Get the current logging fileLevel
getLevel()
Get the current logging levelLogger
getLogger(Class<?> key)
Get a loggerLogger
getLogger(String key)
Get a loggervoid
setFile(File file)
Set the current logging filevoid
setLevel(Level level)
Set the current logging level
-
-
-
方法详细资料
-
getLogger
Logger getLogger(Class<?> key)
Get a logger- 参数:
key
- the returned logger will be named after clazz- 返回:
- logger
-
getLogger
Logger getLogger(String key)
Get a logger- 参数:
key
- the returned logger will be named after key- 返回:
- logger
-
getLevel
Level getLevel()
Get the current logging level- 返回:
- current logging level
-
setLevel
void setLevel(Level level)
Set the current logging level- 参数:
level
- logging level
-
getFile
File getFile()
Get the current logging file- 返回:
- current logging file
-
setFile
void setFile(File file)
Set the current logging file- 参数:
file
- logging file
-
-