Package org.apache.hadoop.hbase.logging
Class Log4jUtils
java.lang.Object
org.apache.hadoop.hbase.logging.Log4jUtils
A bridge class for operating on log4j, such as changing log level, etc.
Will call the methods in
InternalLog4jUtils to actually operate on the log4j stuff.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidDisables Zk- and HBase client loggingstatic voidenableDebug(Class<?> clazz) Switches the logger for the given class to DEBUG level.static StringgetEffectiveLevel(String loggerName) private static Methodprivate static voidstatic voidsetAllLevels(String loggerName, String levelName) static voidsetLogLevel(String loggerName, String levelName) static voidsetRootLevel(String levelName) private static voidthrowUnchecked(Throwable throwable)
-
Field Details
-
INTERNAL_UTILS_CLASS_NAME
- See Also:
-
-
Constructor Details
-
Log4jUtils
private Log4jUtils()
-
-
Method Details
-
getMethod
-
throwUnchecked
-
invoke
- Throws:
AssertionError
-
setAllLevels
-
setLogLevel
-
setRootLevel
-
getEffectiveLevel
-
getActiveLogFiles
- Throws:
IOException
-
disableZkAndClientLoggers
Disables Zk- and HBase client logging -
enableDebug
Switches the logger for the given class to DEBUG level.- Parameters:
clazz- The class for which to switch to debug logging.
-