Mercurial Hosting > luan
view src/luan/modules/logging/LuanLogger.java @ 775:1a68fc55a80c
simplify dir structure
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 26 Aug 2016 14:36:40 -0600 |
parents | logging/src/luan/modules/logging/LuanLogger.java@b21d82ee5756 |
children | 307e76ccd0d6 |
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) ); } }