public void init(NutConfig nc) { Map<String, String> confMap = new HashMap<String, String>(); confMap.put("local-file-span-receiver.path", "aalog.trace"); HTraceConfiguration conf = HTraceConfiguration.fromMap(confMap); receiver.configure(conf); Trace.addReceiver(receiver); }
public void destroy(NutConfig nc) { // Trace. Trace.removeReceiver(receiver); try { receiver.close(); } catch (IOException ex) { Logs.get().error("MainSetup close receiver error", ex); } }