예제 #1
0
 public void addAppender(Appender<AccessEvent> newAppender) {
   aai.addAppender(newAppender);
 }
예제 #2
0
 // this method MUST be synchronized. See comments on 'aai' field for further
 // details.
 public synchronized void addAppender(Appender<ILoggingEvent> newAppender) {
   if (aai == null) {
     aai = new AppenderAttachableImpl<ILoggingEvent>();
   }
   aai.addAppender(newAppender);
 }