Mercurial Hosting > luan
view src/luan/modules/logging/LuanLogger.java @ 1191:dada70cb57c1
put dir_handler before not_found_handler
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 25 Feb 2018 17:17:08 -0700 |
parents | 1a68fc55a80c |
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) ); } }