comparison src/luan/modules/logging/Log4j.java @ 1335:e0cf0d108a77

major cleanup
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 14 Feb 2019 03:10:45 -0700
parents 25746915a241
children 7483108154bb
comparison
equal deleted inserted replaced
1334:c88b486a9511 1335:e0cf0d108a77
17 17
18 public static void newLoggerRepository(Luan luan) throws LuanException { 18 public static void newLoggerRepository(Luan luan) throws LuanException {
19 LoggerRepository lr = new Hierarchy(new RootLogger(Level.DEBUG)); 19 LoggerRepository lr = new Hierarchy(new RootLogger(Level.DEBUG));
20 luan.registry().put(KEY,lr); 20 luan.registry().put(KEY,lr);
21 LuanTable module = (LuanTable)luan.require("luan:logging/Log4j.luan"); 21 LuanTable module = (LuanTable)luan.require("luan:logging/Log4j.luan");
22 module.call( "init_root" ); 22 module.fn("init_root").call();
23 } 23 }
24 24
25 private static final LoggerRepository defaultLoggerRepository = LogManager.getLoggerRepository(); 25 private static final LoggerRepository defaultLoggerRepository = LogManager.getLoggerRepository();
26 26
27 private static LoggerRepository getLoggerRepository(Luan luan) { 27 private static LoggerRepository getLoggerRepository(Luan luan) {