public Object run(Config c) throws PropertyVetoException, TransactionFailure { try { //update logging.properties logConfig.updateLoggingProperties(m); c.setLogService(null); } catch (IOException e) { getLogger().log(Level.SEVERE, FAIL_UPDATE_LOG_PROPS, e); } return null; } }, config);
public Object run(Config config) throws PropertyVetoException { LogService ls = null; try { ls = config.createChild(LogService.class); } catch (TransactionFailure ex) { Logger.getLogger(DefaultConfigUpgrade.class.getName()).log( Level.SEVERE, "Failure creating LogService config object", ex); } config.setLogService(ls); for (int i = 0; i < parser.getAttributeCount(); i++) { String attr = parser.getAttributeLocalName(i); String val = parser.getAttributeValue(i); if (attr.equals("log-rotation-limit-in-bytes")) { ls.setLogRotationLimitInBytes(val); } if (attr.equals("file")) { ls.setFile(val); } } createModuleLogLevels(ls); return null; } }
public Object run(Config config) throws PropertyVetoException { LogService ls = null; try { ls = config.createChild(LogService.class); } catch (TransactionFailure ex) { logger.log( Level.SEVERE, failureCreatingLogService, ex); } config.setLogService(ls); for (int i = 0; i < parser.getAttributeCount(); i++) { String attr = parser.getAttributeLocalName(i); String val = parser.getAttributeValue(i); if (attr.equals("log-rotation-limit-in-bytes")) { ls.setLogRotationLimitInBytes(val); } if (attr.equals("file")) { ls.setFile(val); } } createModuleLogLevels(ls); return null; } }