public class Log4jConfigurationHelper extends Object
| Constructor and Description |
|---|
Log4jConfigurationHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
updateLog4jConfiguration(Class<?> targetClass,
String log4jPath,
String log4jFileName)
Update the log4j configuration.
|
public static void updateLog4jConfiguration(Class<?> targetClass, String log4jPath, String log4jFileName) throws IOException
targetClass - the target class used to get the original log4j configuration file as a resourcelog4jPath - the custom log4j configuration properties file pathlog4jFileName - the custom log4j configuration properties file nameIOException - if there's something wrong with updating the log4j configuration