类 Slf4jLoggerAdapter
- java.lang.Object
-
- com.alibaba.dubbo.common.logger.slf4j.Slf4jLoggerAdapter
-
- 所有已实现的接口:
LoggerAdapter
public class Slf4jLoggerAdapter extends Object implements LoggerAdapter
-
-
构造器概要
构造器 构造器 说明 Slf4jLoggerAdapter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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
public Logger getLogger(String key)
从接口复制的说明:LoggerAdapter
Get a logger- 指定者:
getLogger
在接口中LoggerAdapter
- 参数:
key
- the returned logger will be named after key- 返回:
- logger
-
getLogger
public Logger getLogger(Class<?> key)
从接口复制的说明:LoggerAdapter
Get a logger- 指定者:
getLogger
在接口中LoggerAdapter
- 参数:
key
- the returned logger will be named after clazz- 返回:
- logger
-
getLevel
public Level getLevel()
从接口复制的说明:LoggerAdapter
Get the current logging level- 指定者:
getLevel
在接口中LoggerAdapter
- 返回:
- current logging level
-
setLevel
public void setLevel(Level level)
从接口复制的说明:LoggerAdapter
Set the current logging level- 指定者:
setLevel
在接口中LoggerAdapter
- 参数:
level
- logging level
-
getFile
public File getFile()
从接口复制的说明:LoggerAdapter
Get the current logging file- 指定者:
getFile
在接口中LoggerAdapter
- 返回:
- current logging file
-
setFile
public void setFile(File file)
从接口复制的说明:LoggerAdapter
Set the current logging file- 指定者:
setFile
在接口中LoggerAdapter
- 参数:
file
- logging file
-
-