Mercurial Hosting > luan
comparison src/goodjava/logger/ThreadLocalAppender.java @ 1451:85d7c1777357
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 01 Mar 2020 13:58:27 -0700 |
parents | 28b1ddacfad3 |
children | 219f2b937f2b |
comparison
equal
deleted
inserted
replaced
1450:28b1ddacfad3 | 1451:85d7c1777357 |
---|---|
1 package goodjava.logger; | 1 package goodjava.logger; |
2 | 2 |
3 | 3 |
4 public class ThreadLocalAppender implements Appender { | 4 public final class ThreadLocalAppender implements Appender { |
5 private final Appender defaultAppender; | 5 private final 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; |