Mercurial Hosting > luan
diff src/goodjava/logger/GoodLogger.java @ 1450:28b1ddacfad3
logger work
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 01 Mar 2020 13:47:02 -0700 |
parents | 6fc083e1d08c |
children | 329197048ff0 |
line wrap: on
line diff
--- a/src/goodjava/logger/GoodLogger.java Fri Feb 28 21:14:23 2020 -0700 +++ b/src/goodjava/logger/GoodLogger.java Sun Mar 01 13:47:02 2020 -0700 @@ -5,8 +5,8 @@ public final class GoodLogger implements Logger { public final String name; - public volatile int level = Level.INFO; - public volatile Appender appender = DEFAULT_APPENDER; + public volatile int level; + public volatile Appender appender; GoodLogger(String name) { this.name = name; @@ -63,10 +63,4 @@ private boolean isEnabled(int level) { return true; } - - - private static final Layout DEFAULT_LAYOUT - = new ListLayout(Layouts.LEVEL," - ",Layouts.MESSAGE,"\n",Layouts.THROWABLE); - - private static final WriterAppender DEFAULT_APPENDER = new ConsoleAppender(DEFAULT_LAYOUT,System.err); }