类 LoggerFactory
- java.lang.Object
-
- com.alibaba.dubbo.common.logger.LoggerFactory
-
public class LoggerFactory extends Object
Logger factory
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static File
getFile()
Get the current logging filestatic Level
getLevel()
Get logging levelstatic Logger
getLogger(Class<?> key)
Get logger providerstatic Logger
getLogger(String key)
Get logger providerstatic void
setLevel(Level level)
Set the current logging levelstatic void
setLoggerAdapter(LoggerAdapter loggerAdapter)
Set logger providerstatic void
setLoggerAdapter(String loggerAdapter)
-
-
-
方法详细资料
-
setLoggerAdapter
public static void setLoggerAdapter(String loggerAdapter)
-
setLoggerAdapter
public static void setLoggerAdapter(LoggerAdapter loggerAdapter)
Set logger provider- 参数:
loggerAdapter
- logger provider
-
getLogger
public static Logger getLogger(Class<?> key)
Get logger provider- 参数:
key
- the returned logger will be named after clazz- 返回:
- logger
-
getLogger
public static Logger getLogger(String key)
Get logger provider- 参数:
key
- the returned logger will be named after key- 返回:
- logger provider
-
getLevel
public static Level getLevel()
Get logging level- 返回:
- logging level
-
setLevel
public static void setLevel(Level level)
Set the current logging level- 参数:
level
- logging level
-
getFile
public static File getFile()
Get the current logging file- 返回:
- current logging file
-
-