Mercurial Hosting > luan
view logging/src/luan/modules/logging/LuanLogger.java @ 696:b21d82ee5756 0.18
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 02 May 2016 00:39:42 -0600 |
parents | 7c3ad6db8ac3 |
children |
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; 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.toString(obj) ); } public void warn(LuanState luan,Object obj) throws LuanException { logger.warn( luan.toString(obj) ); } public void info(LuanState luan,Object obj) throws LuanException { logger.info( luan.toString(obj) ); } public void debug(LuanState luan,Object obj) throws LuanException { logger.debug( luan.toString(obj) ); } }