diff src/luan/modules/http/LuanDomainHandler.java @ 1332:11b7e11f9ed5

cleaner logging
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 12 Feb 2019 21:50:26 -0700
parents 5a39b006acd1
children 25746915a241
line wrap: on
line diff
--- a/src/luan/modules/http/LuanDomainHandler.java	Mon Feb 11 02:17:41 2019 -0700
+++ b/src/luan/modules/http/LuanDomainHandler.java	Tue Feb 12 21:50:26 2019 -0700
@@ -8,7 +8,7 @@
 import luan.LuanTable;
 import luan.LuanCloner;
 import luan.LuanException;
-import luan.modules.logging.LuanLogger;
+import luan.modules.logging.Log4j;
 
 
 public class LuanDomainHandler implements Handler, DomainHandler.Factory {
@@ -26,11 +26,15 @@
 		return new LuanHandler(luan);
 	}
 
+	protected void newLoggerRepository(LuanState luan) throws LuanException {
+		Log4j.newLoggerRepository(luan);
+	}
+
 	protected LuanState newLuan(String domain) {
 		LuanCloner cloner = new LuanCloner(LuanCloner.Type.COMPLETE);
 		LuanState luan = (LuanState)cloner.clone(luanInit);
 		try {
-			LuanLogger.newLoggerRepository(luan);
+			newLoggerRepository(luan);
 			LuanTable Http = (LuanTable)luan.require("luan:http/Http.luan");
 			Http.put( "domain", domain );
 		} catch(LuanException e) {