/** * Creates a new Log that wraps the specified LogChute. * @param chute */ public Log(final LogChute chute) { setLogChute(chute); }
/** * Creates a new Log that wraps the specified LogChute. * @param chute */ public Log(final LogChute chute) { setLogChute(chute); }
/** * Creates a new Log that wraps a HoldingLogChute. */ public Log() { setLogChute(new HoldingLogChute()); }
/** * Creates a new Log that wraps a HoldingLogChute. */ public Log() { setLogChute(new HoldingLogChute()); }
/** * Update the Log instance with the appropriate LogChute and other * settings determined by the RuntimeServices. * @param log * @param rsvc * @throws Exception * @since 1.5 */ public static void updateLog(Log log, RuntimeServices rsvc) throws Exception { // create a new LogChute using the RuntimeServices LogChute newLogChute = createLogChute(rsvc); LogChute oldLogChute = log.getLogChute(); // pass the new LogChute to the log first, // (if the old was a HoldingLogChute, we don't want it // to accrue new messages during the transfer below) log.setLogChute(newLogChute); // If the old LogChute was the pre-Init logger, // dump its messages into the new system. if (oldLogChute instanceof HoldingLogChute) { HoldingLogChute hlc = (HoldingLogChute)oldLogChute; hlc.transferTo(newLogChute); } }
/** * Update the Log instance with the appropriate LogChute and other * settings determined by the RuntimeServices. * @param log * @param rsvc * @throws Exception * @since 1.5 */ public static void updateLog(Log log, RuntimeServices rsvc) throws Exception { // create a new LogChute using the RuntimeServices LogChute newLogChute = createLogChute(rsvc); LogChute oldLogChute = log.getLogChute(); // pass the new LogChute to the log first, // (if the old was a HoldingLogChute, we don't want it // to accrue new messages during the transfer below) log.setLogChute(newLogChute); // If the old LogChute was the pre-Init logger, // dump its messages into the new system. if (oldLogChute instanceof HoldingLogChute) { HoldingLogChute hlc = (HoldingLogChute)oldLogChute; hlc.transferTo(newLogChute); } }