@InterfaceAudience.Private public final class Log4jUtils extends Object
InternalLog4jUtils
to actually operate on the log4j stuff.Modifier and Type | Field and Description |
---|---|
private static String |
INTERNAL_UTILS_CLASS_NAME |
Modifier | Constructor and Description |
---|---|
private |
Log4jUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
disableZkAndClientLoggers()
Disables Zk- and HBase client logging
|
static void |
enableDebug(Class<?> clazz)
Switches the logger for the given class to DEBUG level.
|
static Set<File> |
getActiveLogFiles() |
static String |
getEffectiveLevel(String loggerName) |
private static Method |
getMethod(String methodName,
Class<?>... args) |
static void |
setLogLevel(String loggerName,
String levelName) |
private static void |
throwUnchecked(Throwable throwable) |
private static final String INTERNAL_UTILS_CLASS_NAME
private Log4jUtils()
private static void throwUnchecked(Throwable throwable)
public static void setLogLevel(String loggerName, String levelName)
public static String getEffectiveLevel(String loggerName)
public static Set<File> getActiveLogFiles() throws IOException
IOException
public static void disableZkAndClientLoggers()
public static void enableDebug(Class<?> clazz)
clazz
- The class for which to switch to debug logging.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.