Mercurial Hosting > luan
comparison src/luan/Luan.java @ 1393:cc0dbca576dc
better logging
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 06 Sep 2019 05:09:56 -0600 |
parents | 8b61c8c4e07a |
children | ef1620aa99cb |
comparison
equal
deleted
inserted
replaced
1392:002152af497a | 1393:cc0dbca576dc |
---|---|
13 import luan.lib.logging.Logger; | 13 import luan.lib.logging.Logger; |
14 import luan.lib.logging.LoggerFactory; | 14 import luan.lib.logging.LoggerFactory; |
15 import luan.modules.BasicLuan; | 15 import luan.modules.BasicLuan; |
16 import luan.modules.JavaLuan; | 16 import luan.modules.JavaLuan; |
17 import luan.modules.PackageLuan; | 17 import luan.modules.PackageLuan; |
18 import luan.modules.logging.LuanLogger; | |
18 import luan.impl.LuanCompiler; | 19 import luan.impl.LuanCompiler; |
19 | 20 |
20 | 21 |
21 public final class Luan implements LuanCloneable { | 22 public final class Luan implements LuanCloneable { |
22 private static final Logger logger = LoggerFactory.getLogger(Luan.class); | 23 private static final Logger logger = LoggerFactory.getLogger(Luan.class); |
168 Object[] a = (Object[])obj; | 169 Object[] a = (Object[])obj; |
169 return new LuanTable(this,Arrays.asList(a)); | 170 return new LuanTable(this,Arrays.asList(a)); |
170 } | 171 } |
171 } | 172 } |
172 return null; | 173 return null; |
174 } | |
175 | |
176 public Logger getLogger(Class cls) { | |
177 return LuanLogger.getLogger(this,cls); | |
173 } | 178 } |
174 | 179 |
175 | 180 |
176 | 181 |
177 // static | 182 // static |