Fixed log4j configuration load.

This commit is contained in:
Christian P. MOMON 2020-01-22 19:28:48 +01:00
parent 094920c087
commit 408886c8b8

View file

@ -172,8 +172,9 @@ public final class AgiStatoolCLI
else else
{ {
// Apply -c parameter. // Apply -c parameter.
logger.info("Applying configuration file found in [{}].", configurationFile.getAbsoluteFile()); File log4jfile = new File(configurationFile.getParentFile(), "log4j.properties");
PropertyConfigurator.configure(configurationFile.getAbsolutePath()); logger.info("Applying configuration file found in [{}].", log4jfile.getAbsoluteFile());
PropertyConfigurator.configure(log4jfile.getAbsolutePath());
logger.info("Configuration log configuration done."); logger.info("Configuration log configuration done.");
switch (command) switch (command)