Mercurial Hosting > luan
diff 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 |
line wrap: on
line diff
--- a/src/luan/modules/logging/LuanLogger.java Thu Sep 05 01:29:57 2019 -0600 +++ b/src/luan/modules/logging/LuanLogger.java Fri Sep 06 00:19:47 2019 -0600 @@ -46,6 +46,15 @@ } } + public static Logger getLogger(Luan luan,Class cls) { + tl.set(luan); + try { + return LoggerFactory.getLogger(cls); + } finally { + tl.remove(); + } + } + public static Luan luan() { return tl.get(); }