Mercurial Hosting > luan
comparison src/goodjava/logger/ThreadLocalAppender.java @ 1454:219f2b937f2b
remove log4j
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 08 Mar 2020 14:11:30 -0600 |
parents | 85d7c1777357 |
children | 74c534de211f |
comparison
equal
deleted
inserted
replaced
1453:928be2a4d565 | 1454:219f2b937f2b |
---|---|
1 package goodjava.logger; | 1 package goodjava.logger; |
2 | 2 |
3 | 3 |
4 public final class ThreadLocalAppender implements Appender { | 4 public final class ThreadLocalAppender implements Appender { |
5 private final Appender defaultAppender; | 5 public volatile Appender defaultAppender; |
6 public final ThreadLocal<Appender> threadLocal = new ThreadLocal<Appender>(); | 6 public final ThreadLocal<Appender> threadLocal = new ThreadLocal<Appender>(); |
7 | 7 |
8 public ThreadLocalAppender(Appender defaultAppender) { | 8 public ThreadLocalAppender(Appender defaultAppender) { |
9 this.defaultAppender = defaultAppender; | 9 this.defaultAppender = defaultAppender; |
10 } | 10 } |