Mercurial Hosting > luan
annotate src/goodjava/logger/ListAppender.java @ 1640:570f3d483a31
host - move https.luan into src
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 21 Dec 2021 16:54:26 -0700 |
parents | 85d7c1777357 |
children |
rev | line source |
---|---|
1449 | 1 package goodjava.logger; |
2 | |
3 | |
1451 | 4 public final class ListAppender implements Appender { |
1449 | 5 private final Appender[] appenders; |
6 | |
7 public ListAppender(Appender... appenders) { | |
8 this.appenders = appenders; | |
9 } | |
10 | |
11 public synchronized void append(LoggingEvent event) { | |
12 for( Appender appender : appenders ) { | |
13 appender.append(event); | |
14 } | |
15 } | |
16 | |
17 public void close() { | |
18 for( Appender appender : appenders ) { | |
19 appender.close(); | |
20 } | |
21 } | |
22 } |