Mercurial Hosting > luan
diff logging/src/luan/modules/logging/LuanLogger.java @ 221:ec016471c6eb
make LuanTable an interface
git-svn-id: https://luan-java.googlecode.com/svn/trunk@222 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 17 Jul 2014 07:49:26 +0000 |
parents | 8e4ef9134362 |
children |
line wrap: on
line diff
--- a/logging/src/luan/modules/logging/LuanLogger.java Wed Jul 16 04:59:45 2014 +0000 +++ b/logging/src/luan/modules/logging/LuanLogger.java Thu Jul 17 07:49:26 2014 +0000 @@ -1,6 +1,7 @@ package luan.modules.logging; import org.apache.log4j.Logger; +import luan.Luan; import luan.LuanState; import luan.LuanException; import luan.LuanTable; @@ -31,7 +32,7 @@ } public LuanTable table() { - LuanTable tbl = new LuanTable(); + LuanTable tbl = Luan.newTable(); try { tbl.put( "error", new LuanJavaFunction( LuanLogger.class.getMethod( "error", LuanState.class, Object.class ), this