Mercurial Hosting > luan
diff src/goodjava/logger/GoodLogger.java @ 1594:329197048ff0
add DailyRollingFileAppender
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 21 Mar 2021 00:59:58 -0600 |
parents | 28b1ddacfad3 |
children |
line wrap: on
line diff
--- a/src/goodjava/logger/GoodLogger.java Sat Mar 20 22:29:01 2021 -0600 +++ b/src/goodjava/logger/GoodLogger.java Sun Mar 21 00:59:58 2021 -0600 @@ -8,7 +8,7 @@ public volatile int level; public volatile Appender appender; - GoodLogger(String name) { + public GoodLogger(String name) { this.name = name; } @@ -61,6 +61,6 @@ } private boolean isEnabled(int level) { - return true; + return level >= this.level; } }