public final class StartupLoggingUtils extends Object
WARNING: This class should only be used during startup. For modifying log levels etc during runtime, SLF4J and LogWatcher must be used.
Constructor and Description |
---|
StartupLoggingUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
changeLogLevel(String logLevel)
Dynamically change log4j log level through property solr.log.level
|
static void |
checkLogDir()
Checks whether mandatory log dir is given
|
static String |
getLoggerImplStr() |
static String |
getLogLevelString()
Return a string representing the current static ROOT logging level
|
static boolean |
muteConsole()
Disables all log4j2 ConsoleAppender's by modifying log4j configuration dynamically.
|
public static void checkLogDir()
public static String getLoggerImplStr()
public static boolean muteConsole()
public static boolean changeLogLevel(String logLevel)
logLevel
- String with level, should be one of the supported, e.g. TRACE, DEBUG, INFO, WARN, ERROR...public static String getLogLevelString()
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.