Mercurial Hosting > luan
comparison src/luan/modules/logging/LuanLogger.java @ 1392:002152af497a
hosted postgres
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Fri, 06 Sep 2019 00:19:47 -0600 |
parents | 8b61c8c4e07a |
children | cc0dbca576dc |
comparison
equal
deleted
inserted
replaced
1391:94f48cc76de8 | 1392:002152af497a |
---|---|
44 } finally { | 44 } finally { |
45 tl.remove(); | 45 tl.remove(); |
46 } | 46 } |
47 } | 47 } |
48 | 48 |
49 public static Logger getLogger(Luan luan,Class cls) { | |
50 tl.set(luan); | |
51 try { | |
52 return LoggerFactory.getLogger(cls); | |
53 } finally { | |
54 tl.remove(); | |
55 } | |
56 } | |
57 | |
49 public static Luan luan() { | 58 public static Luan luan() { |
50 return tl.get(); | 59 return tl.get(); |
51 } | 60 } |
52 } | 61 } |