diff src/luan/modules/http/LuanDomainHandler.java @ 1454:219f2b937f2b

remove log4j
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 08 Mar 2020 14:11:30 -0600
parents 27efb1fcbcb5
children b89212fd04b5
line wrap: on
line diff
--- a/src/luan/modules/http/LuanDomainHandler.java	Mon Mar 02 15:09:10 2020 -0700
+++ b/src/luan/modules/http/LuanDomainHandler.java	Sun Mar 08 14:11:30 2020 -0600
@@ -9,7 +9,7 @@
 import luan.LuanCloner;
 import luan.LuanFunction;
 import luan.LuanException;
-import luan.modules.logging.Log4j;
+import luan.modules.logging.LuanLogger;
 
 
 public class LuanDomainHandler implements Handler, DomainHandler.Factory {
@@ -18,6 +18,7 @@
 	private final DomainHandler domainHandler = new DomainHandler(this);
 
 	public LuanDomainHandler(Luan luanInit) {
+		LuanLogger.initThreadLogging();
 		LuanCloner cloner = new LuanCloner(LuanCloner.Type.COMPLETE);
 		this.luanInit = (Luan)cloner.clone(luanInit);
 	}
@@ -27,14 +28,9 @@
 		return new LuanHandler(luan,domain);
 	}
 
-	protected void newLoggerRepository(Luan luan) {
-		Log4j.newLoggerRepository(luan);
-	}
-
 	protected Luan newLuan(final String domain) {
 		LuanCloner cloner = new LuanCloner(LuanCloner.Type.COMPLETE);
 		Luan luan = (Luan)cloner.clone(luanInit);
-		newLoggerRepository(luan);
 		LuanFunction reset_luan = new LuanFunction(false) {
 			@Override public Object call(Object[] args) {
 				domainHandler.removeHandler(domain);