Browse Source

Fixed log4j configuration load.

master
Christian P. MOMON 2 years ago
parent
commit
408886c8b8
  1. 5
      src/org/april/agirstatool/cli/AgiStatoolCLI.java

5
src/org/april/agirstatool/cli/AgiStatoolCLI.java

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

Loading…
Cancel
Save