public void stop () throws ServiceException { super.stop(); //this.out.flush(); this.out.close(); log.info("'"+getName()+"' stopped."); }
public void init (final String serviceName, final ApplicationContext context, final java.util.Map serviceParams) throws ServiceException { super.init(serviceName, context, serviceParams); final String fileName = MapUtils.getAsString (getParams(), P_FILE_NAME, "logs/history.log"); try { this.out = new java.io.PrintWriter(new java.io.FileWriter(fileName)); } catch (final Throwable t) { log.warn ("Failed to init history with file "+fileName, t); } }
hParams.put(TextHistory.P_FILE_NAME, "history.log"); TextHistory history = new TextHistory(); history.init(Definitions.S_HISTORY, engine.getContext(), hParams);
hParams.put(TextHistory.P_FILE_NAME, "history.log"); TextHistory history = new TextHistory(); history.init(Definitions.S_HISTORY, engine.getContext(), hParams);