public void addChild(LogRecordHandler handler){ if(Redwood.depth != 0){ throw new IllegalStateException("Cannot modify Redwood when within a track"); } children.add(new RecordHandlerTree(handler)); } protected void addChildTree(RecordHandlerTree tree){
public void addChild(LogRecordHandler handler){ if(Redwood.depth != 0){ throw new IllegalStateException("Cannot modify Redwood when within a track"); } children.add(new RecordHandlerTree(handler)); } protected void addChildTree(RecordHandlerTree tree){
public void addChild(LogRecordHandler handler){ if(Redwood.depth != 0){ throw new IllegalStateException("Cannot modify Redwood when within a track"); } children.add(new RecordHandlerTree(handler)); } protected void addChildTree(RecordHandlerTree tree){
private Redwood.RecordHandlerTree buildChain(RedwoodConfiguration config, LogRecordHandler[] handlers, int i) { Redwood.RecordHandlerTree rtn = new Redwood.RecordHandlerTree(handlers[i]); if (i < handlers.length - 1) { rtn.addChildTree( buildChain(config, handlers, i + 1) ); } else { destination.apply(config, rtn); } return rtn; } @Override
public void addChild(LogRecordHandler handler){ if(Redwood.depth != 0){ throw new IllegalStateException("Cannot modify Redwood when within a track"); } children.add(new RecordHandlerTree(handler)); } protected void addChildTree(RecordHandlerTree tree){
private Redwood.RecordHandlerTree buildChain(RedwoodConfiguration config, LogRecordHandler[] handlers, int i) { Redwood.RecordHandlerTree rtn = new Redwood.RecordHandlerTree(handlers[i]); if (i < handlers.length - 1) { rtn.addChildTree( buildChain(config, handlers, i + 1) ); } else { destination.apply(config, rtn); } return rtn; } @Override
/** * Remove all log handlers from Redwood, presumably in order to * construct a custom pipeline afterwards */ protected static void clearHandlers(){ handlers = new RecordHandlerTree(); }
private Redwood.RecordHandlerTree buildChain(RedwoodConfiguration config, LogRecordHandler[] handlers, int i) { Redwood.RecordHandlerTree rtn = new Redwood.RecordHandlerTree(handlers[i]); if (i < handlers.length - 1) { rtn.addChildTree( buildChain(config, handlers, i + 1) ); } else { destination.apply(config, rtn); } return rtn; } @Override
/** * Remove all log handlers from Redwood, presumably in order to * construct a custom pipeline afterwards */ protected static void clearHandlers(){ handlers = new RecordHandlerTree(); }
/** * Remove all log handlers from Redwood, presumably in order to * construct a custom pipeline afterwards */ protected static void clearHandlers(){ handlers = new RecordHandlerTree(); }
/** * Remove all log handlers from Redwood, presumably in order to * construct a custom pipeline afterwards */ protected static void clearHandlers(){ handlers = new RecordHandlerTree(); }
private Redwood.RecordHandlerTree buildChain(RedwoodConfiguration config, LogRecordHandler[] handlers, int i) { Redwood.RecordHandlerTree rtn = new Redwood.RecordHandlerTree(handlers[i]); if (i < handlers.length - 1) { rtn.addChildTree( buildChain(config, handlers, i + 1) ); } else { destination.apply(config, rtn); } return rtn; } @Override