Skip to content

Commit

Permalink
fix log init to take into account new reflective API
Browse files Browse the repository at this point in the history
  • Loading branch information
pgdurand committed Jan 5, 2023
1 parent 3fd6716 commit 8189dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bzh/plealog/dbmirror/util/log/LoggerCentral.java
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ private static void initLoggers(ConfigurationBuilder<BuiltConfiguration> builder
builder.newAppenderRef(refAppender)).addAttribute("additivity", false));

builder.add(builder.newRootLogger(aLevel).add(builder.newAppenderRef(refAppender)));
Configurator.initialize(builder.build());
Configurator.reconfigure(builder.build());
}

/**
Expand Down Expand Up @@ -336,7 +336,7 @@ private static void configureRollingFileLogger(Level aLevel, String logName) {
userPath = getLogAppPath();
szLogFileName = userPath + _logAppFile;
szLogFilePattern = userPath + "%d{MM-dd-yy}-" + _logAppFile;

System.out.println("**** LogFile: "+szLogFileName);
try {
cleanSystemLogs(userPath, _logAppFile);
} catch (Exception e) {
Expand Down

0 comments on commit 8189dca

Please sign in to comment.