Mercurial Hosting > luan
view logging/src/luan/modules/logging/LuanLogger.java @ 572:f1601a4ce1aa
fix stack when calling meta-methods
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 12 Jul 2015 21:34:23 -0600 |
parents | 0a75ed73bccc |
children | 7c3ad6db8ac3 |
line wrap: on
line source
package luan.modules.logging; import org.apache.log4j.Logger; import luan.Luan; import luan.LuanState; import luan.LuanException; import luan.LuanTable; import luan.LuanJavaFunction; public final class LuanLogger { private final Logger logger; public LuanLogger(Logger logger) { this.logger = logger; } public void error(LuanState luan,Object obj) throws LuanException { logger.error( luan.JAVA.toString(obj) ); } public void warn(LuanState luan,Object obj) throws LuanException { logger.warn( luan.JAVA.toString(obj) ); } public void info(LuanState luan,Object obj) throws LuanException { logger.info( luan.JAVA.toString(obj) ); } public void debug(LuanState luan,Object obj) throws LuanException { logger.debug( luan.JAVA.toString(obj) ); } }