comparison 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
comparison
equal deleted inserted replaced
571:cd944b010f25 572:f1601a4ce1aa
14 public LuanLogger(Logger logger) { 14 public LuanLogger(Logger logger) {
15 this.logger = logger; 15 this.logger = logger;
16 } 16 }
17 17
18 public void error(LuanState luan,Object obj) throws LuanException { 18 public void error(LuanState luan,Object obj) throws LuanException {
19 logger.error( luan.toString(obj) ); 19 logger.error( luan.JAVA.toString(obj) );
20 } 20 }
21 21
22 public void warn(LuanState luan,Object obj) throws LuanException { 22 public void warn(LuanState luan,Object obj) throws LuanException {
23 logger.warn( luan.toString(obj) ); 23 logger.warn( luan.JAVA.toString(obj) );
24 } 24 }
25 25
26 public void info(LuanState luan,Object obj) throws LuanException { 26 public void info(LuanState luan,Object obj) throws LuanException {
27 logger.info( luan.toString(obj) ); 27 logger.info( luan.JAVA.toString(obj) );
28 } 28 }
29 29
30 public void debug(LuanState luan,Object obj) throws LuanException { 30 public void debug(LuanState luan,Object obj) throws LuanException {
31 logger.debug( luan.toString(obj) ); 31 logger.debug( luan.JAVA.toString(obj) );
32 } 32 }
33 33
34 } 34 }