Class Log4j2LoggerAdapter
java.lang.Object
org.apache.dubbo.common.logger.log4j2.Log4j2LoggerAdapter
- All Implemented Interfaces:
LoggerAdapter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
Log4j2LoggerAdapter
public Log4j2LoggerAdapter()
-
-
Method Details
-
getLogger
Description copied from interface:LoggerAdapterGet a logger- Specified by:
getLoggerin interfaceLoggerAdapter- Parameters:
key- the returned logger will be named after clazz- Returns:
- logger
-
getLogger
Description copied from interface:LoggerAdapterGet a logger- Specified by:
getLoggerin interfaceLoggerAdapter- Parameters:
key- the returned logger will be named after key- Returns:
- logger
-
getLevel
Description copied from interface:LoggerAdapterGet the current logging level- Specified by:
getLevelin interfaceLoggerAdapter- Returns:
- current logging level
-
setLevel
Description copied from interface:LoggerAdapterSet the current logging level- Specified by:
setLevelin interfaceLoggerAdapter- Parameters:
level- logging level
-
getFile
Description copied from interface:LoggerAdapterGet the current logging file- Specified by:
getFilein interfaceLoggerAdapter- Returns:
- current logging file
-
setFile
Description copied from interface:LoggerAdapterSet the current logging file- Specified by:
setFilein interfaceLoggerAdapter- Parameters:
file- logging file
-
isConfigured
public boolean isConfigured()Description copied from interface:LoggerAdapterReturn is the current logger has been configured. Used to check if logger is available to use.- Specified by:
isConfiguredin interfaceLoggerAdapter- Returns:
- true if the current logger has been configured
-