diff src/goodjava/logger/GoodLoggerFactory.java @ 1454:219f2b937f2b

remove log4j
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 08 Mar 2020 14:11:30 -0600
parents 28b1ddacfad3
children
line wrap: on
line diff
--- a/src/goodjava/logger/GoodLoggerFactory.java	Mon Mar 02 15:09:10 2020 -0700
+++ b/src/goodjava/logger/GoodLoggerFactory.java	Sun Mar 08 14:11:30 2020 -0600
@@ -7,11 +7,12 @@
 public final class GoodLoggerFactory {
 	private GoodLoggerFactory() {}  // never
 
+	public static final Appender DEFAULT_APPENDER;
 	public static final Configurer DEFAULT_CONFIGURER;
 	static {
 		Layout layout = new ListLayout(Layouts.LEVEL," - ",Layouts.MESSAGE,"\n",Layouts.THROWABLE);
-		Appender appender = new ConsoleAppender(layout,System.err);
-		DEFAULT_CONFIGURER = new SimpleConfigurer(Level.INFO,appender);
+		DEFAULT_APPENDER = new ConsoleAppender(layout,System.err);
+		DEFAULT_CONFIGURER = new SimpleConfigurer(Level.INFO,DEFAULT_APPENDER);
 	}
 	private static final Map<String,GoodLogger> map = new HashMap<String,GoodLogger>();
 	private static Configurer configurer = DEFAULT_CONFIGURER;