diff src/goodjava/webserver/examples/Example.java @ 1454:219f2b937f2b

remove log4j
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 08 Mar 2020 14:11:30 -0600
parents 27efb1fcbcb5
children fa066aaa068c
line wrap: on
line diff
--- a/src/goodjava/webserver/examples/Example.java	Mon Mar 02 15:09:10 2020 -0700
+++ b/src/goodjava/webserver/examples/Example.java	Sun Mar 08 14:11:30 2020 -0600
@@ -5,9 +5,6 @@
 import java.io.IOException;
 import java.util.Map;
 import java.util.HashMap;
-import org.apache.log4j.EnhancedPatternLayout;
-import org.apache.log4j.ConsoleAppender;
-import org.apache.log4j.Logger;
 import goodjava.webserver.Handler;
 import goodjava.webserver.Request;
 import goodjava.webserver.Response;
@@ -58,15 +55,7 @@
 		new Server(8080,handler).start();
 	}
 
-	public static void initLogging() {
-//		Logger.getRootLogger().setLevel(Level.INFO);
-		EnhancedPatternLayout layout = new EnhancedPatternLayout("%d{HH:mm:ss} %-5p %c - %m%n");
-		ConsoleAppender appender = new ConsoleAppender(layout,"System.err");
-		Logger.getRootLogger().addAppender(appender);
-	}
-
 	public static void main(String[] args) throws Exception {
-		initLogging();
 		fancy();
 	}
 }