Mercurial Hosting > luan
diff src/goodjava/logger/SimpleConfigurer.java @ 1450:28b1ddacfad3
logger work
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 01 Mar 2020 13:47:02 -0700 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/goodjava/logger/SimpleConfigurer.java Sun Mar 01 13:47:02 2020 -0700 @@ -0,0 +1,17 @@ +package goodjava.logger; + + +public class SimpleConfigurer implements Configurer { + public final int level; + public final Appender appender; + + public SimpleConfigurer(int level,Appender appender) { + this.level = level; + this.appender = appender; + } + + public void configure(GoodLogger logger) { + logger.level = level; + logger.appender = appender; + } +}