Esempio n. 1
0
  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);
  }
Esempio n. 2
0
 public void destroy(NutConfig nc) {
   // Trace.
   Trace.removeReceiver(receiver);
   try {
     receiver.close();
   } catch (IOException ex) {
     Logs.get().error("MainSetup close receiver error", ex);
   }
 }