Skip to content

Commit

Permalink
fix skipping of console appender (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
azahnen committed Mar 2, 2023
1 parent 7d6a336 commit 34f93e6
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ public List<ILoggingEvent> configure(
ImmutableList.copyOf(
LoggingUtil.getLoggerContext().getLogger("ROOT").iteratorForAppenders());

for (int j = 1; j < appenders.size() - 1; j++) {
for (ILoggingEvent iLoggingEvent : record.get()) {
appenders.get(j).doAppend(iLoggingEvent);
for (int j = 0; j < appenders.size() - 1; j++) {
if (!appenders.get(j).getName().endsWith("console-appender")) {
for (ILoggingEvent iLoggingEvent : record.get()) {
appenders.get(j).doAppend(iLoggingEvent);
}
}
}
}
Expand Down

0 comments on commit 34f93e6

Please sign in to comment.