Package org.apache.hadoop.hbase.logging
Class InternalLog4jUtils
java.lang.Object
org.apache.hadoop.hbase.logging.InternalLog4jUtils
The actual class for operating on log4j2.
This class will depend on log4j directly, so callers should not use this class directly to avoid
introducing log4j2 dependencies to downstream users. Please call the methods in
Log4jUtils
, as they will call the methods here through reflection.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static String
getEffectiveLevel
(String loggerName) private static org.apache.logging.log4j.Level
(package private) static void
setAllLevels
(String loggerName, String levelName) (package private) static void
setLogLevel
(String loggerName, String levelName) (package private) static void
setRootLevel
(String levelName)
-
Constructor Details
-
InternalLog4jUtils
private InternalLog4jUtils()
-
-
Method Details
-
getLevel
private static org.apache.logging.log4j.Level getLevel(String levelName) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
setAllLevels
-
setLogLevel
-
setRootLevel
-
getEffectiveLevel
-
getActiveLogFiles
- Throws:
IOException
-