Fix default log configuration.
This commit is contained in:
parent
218588dd2f
commit
22e7957310
1 changed files with 4 additions and 2 deletions
|
@ -22,6 +22,8 @@ import java.io.File;
|
|||
|
||||
import org.apache.commons.lang3.ArrayUtils;
|
||||
import org.apache.log4j.BasicConfigurator;
|
||||
import org.apache.log4j.ConsoleAppender;
|
||||
import org.apache.log4j.EnhancedPatternLayout;
|
||||
import org.apache.log4j.PropertyConfigurator;
|
||||
import org.april.agirstatool.cli.AgiStatoolCLI;
|
||||
import org.april.agirstatool.demo.AgirStatool;
|
||||
|
@ -51,7 +53,7 @@ public final class AgirStatoolLauncher
|
|||
public static void main(final String[] args)
|
||||
{
|
||||
// Configure log.
|
||||
File loggerConfig = new File("log4j.properties");
|
||||
File loggerConfig = new File("log4j.peroperties");
|
||||
if (loggerConfig.exists())
|
||||
{
|
||||
PropertyConfigurator.configure(loggerConfig.getAbsolutePath());
|
||||
|
@ -60,7 +62,7 @@ public final class AgirStatoolLauncher
|
|||
}
|
||||
else
|
||||
{
|
||||
BasicConfigurator.configure();
|
||||
BasicConfigurator.configure(new ConsoleAppender(new EnhancedPatternLayout("%m%n")));
|
||||
// logger.info("Basic log configuration done.");
|
||||
// logger.info("Configuration file was not found in [{}].",
|
||||
// loggerConfig.getAbsoluteFile());
|
||||
|
|
Loading…
Reference in a new issue