Mercurial Hosting > luan
comparison src/luan/modules/logging/LuanLogger.java @ 1334:c88b486a9511
make some Luan methods static
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 12 Feb 2019 22:53:57 -0700 |
parents | 25746915a241 |
children | 8b61c8c4e07a |
comparison
equal
deleted
inserted
replaced
1333:25746915a241 | 1334:c88b486a9511 |
---|---|
11 | 11 |
12 public LuanLogger(Luan luan,String name) { | 12 public LuanLogger(Luan luan,String name) { |
13 this.logger = getLogger(luan,name); | 13 this.logger = getLogger(luan,name); |
14 } | 14 } |
15 | 15 |
16 public void error(Luan luan,Object obj) throws LuanException { | 16 public void error(Object obj) throws LuanException { |
17 logger.error( luan.toString(obj) ); | 17 logger.error( Luan.luanToString(obj) ); |
18 } | 18 } |
19 | 19 |
20 public void warn(Luan luan,Object obj) throws LuanException { | 20 public void warn(Object obj) throws LuanException { |
21 logger.warn( luan.toString(obj) ); | 21 logger.warn( Luan.luanToString(obj) ); |
22 } | 22 } |
23 | 23 |
24 public void info(Luan luan,Object obj) throws LuanException { | 24 public void info(Object obj) throws LuanException { |
25 logger.info( luan.toString(obj) ); | 25 logger.info( Luan.luanToString(obj) ); |
26 } | 26 } |
27 | 27 |
28 public void debug(Luan luan,Object obj) throws LuanException { | 28 public void debug(Object obj) throws LuanException { |
29 logger.debug( luan.toString(obj) ); | 29 logger.debug( Luan.luanToString(obj) ); |
30 } | 30 } |
31 | 31 |
32 | 32 |
33 private static ThreadLocal<Luan> tl = new ThreadLocal<Luan>(); | 33 private static ThreadLocal<Luan> tl = new ThreadLocal<Luan>(); |
34 | 34 |