view src/goodjava/logger/SimpleConfigurer.java @ 1682:97cc73664ca8

improve RollingFileAppender
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 05 Jun 2022 10:51:43 -0600
parents 28b1ddacfad3
children
line wrap: on
line source

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;
	}	
}