@Test @Ignore public void newBundleOutput() { TaskDataOutput eventLog = LogUtil.newBundleOutputFromConfig("logtest"); Bundle event = eventLog.createBundle(); BundleFormat eventFormat = event.getFormat(); BundleField typeField = eventFormat.getField("TYPE"); event.setValue(typeField, ValueFactory.create("verbose")); BundleField messageField = eventFormat.getField("MESSAGE"); event.setValue(messageField, ValueFactory.create("I am a \"super \'cool message")); eventLog.send(event); eventLog.send(event); eventLog.send(event); eventLog.sendComplete(); }
public static TaskDataOutput newBundleOutputFromConfig(String name) { Config outputConfig = ConfigFactory.load().getConfig("hydra.log.events").getConfig(name); try { TaskDataOutput output = Configs.decodeObject(TaskDataOutput.class, outputConfig); output.init(); return output; } catch (Throwable ex) { log.error("error while trying to create bundle output named {}", name, ex); throw Throwables.propagate(ex); } }
LogUtil { public static TaskDataOutput newBundleOutputFromConfig(String name) { Config outputConfig = ConfigFactory.load().getConfig("hydra.log.events").getConfig(name); try { TaskDataOutput output = Configs.decodeObject(TaskDataOutput.class, outputConfig); output.init(); return output; } catch (Throwable ex) { log.error("error while trying to create bundle output named {}", name, ex); throw Throwables.propagate(ex); } } }
LogUtil { public static TaskDataOutput newBundleOutputFromConfig(String name) { Config outputConfig = ConfigFactory.load().getConfig("hydra.log.events").getConfig(name); try { TaskDataOutput output = Configs.decodeObject(TaskDataOutput.class, outputConfig); output.init(); return output; } catch (Throwable ex) { log.error("error while trying to create bundle output named {}", name, ex); throw Throwables.propagate(ex); } }  }
LogUtil { public static TaskDataOutput newBundleOutputFromConfig(String name) { Config outputConfig = ConfigFactory.load().getConfig("hydra.log.events").getConfig(name); try { TaskDataOutput output = Configs.decodeObject(TaskDataOutput.class, outputConfig); output.init(); return output; } catch (Throwable ex) { log.error("error while trying to create bundle output named {}", name, ex); throw Throwables.propagate(ex); } }  static void log(RollingLog eventLog, Logger log, StringMapHelper output); static TaskDataOutput newBundleOutputFromConfig(String name); }
LogUtil { public static TaskDataOutput newBundleOutputFromConfig(String name) { Config outputConfig = ConfigFactory.load().getConfig("hydra.log.events").getConfig(name); try { TaskDataOutput output = Configs.decodeObject(TaskDataOutput.class, outputConfig); output.init(); return output; } catch (Throwable ex) { log.error("error while trying to create bundle output named {}", name, ex); throw Throwables.propagate(ex); } }  static void log(RollingLog eventLog, Logger log, StringMapHelper output); static TaskDataOutput newBundleOutputFromConfig(String name);  }