comparison 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
comparison
equal deleted inserted replaced
774:3e30cf310e56 775:1a68fc55a80c
1 package luan.modules.logging;
2
3 import org.apache.log4j.Logger;
4 import luan.Luan;
5 import luan.LuanState;
6 import luan.LuanException;
7 import luan.LuanTable;
8
9
10 public final class LuanLogger {
11 private final Logger logger;
12
13 public LuanLogger(Logger logger) {
14 this.logger = logger;
15 }
16
17 public void error(LuanState luan,Object obj) throws LuanException {
18 logger.error( luan.toString(obj) );
19 }
20
21 public void warn(LuanState luan,Object obj) throws LuanException {
22 logger.warn( luan.toString(obj) );
23 }
24
25 public void info(LuanState luan,Object obj) throws LuanException {
26 logger.info( luan.toString(obj) );
27 }
28
29 public void debug(LuanState luan,Object obj) throws LuanException {
30 logger.debug( luan.toString(obj) );
31 }
32
33 }