/** * Logs a module action.<p> * * @param moduleName the module name * @param action the action * @param ok true if the action was successful */ public synchronized void log(String moduleName, Action action, boolean ok) { if (moduleName == null) { return; } SimpleDateFormat format = new SimpleDateFormat(DATE_FORMAT_STRING); String now = format.format(new Date()); String message = now + " " + action.getPrintName() + " " + (ok ? "0" : "1"); log(moduleName, message); }
m_moduleLog.log(moduleName, Action.exportModule, !failed);
throw e; } finally { m_moduleLog.log(moduleName, Action.importModule, ok);
m_moduleLog.log(moduleName, Action.deleteModule, ok);