public void Apply(RedwoodConfiguration config, Redwood.RecordHandlerTree root) { if (handlers.Length == 0) { destination.Apply(config, root); } else { root.AddChildTree(this.BuildChain(config, handlers, 0)); } }
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(this.BuildChain(config, handlers, i + 1)); } else { destination.Apply(config, rtn); } return(rtn); }
public void Apply(RedwoodConfiguration config, Redwood.RecordHandlerTree root) { root.AddChild(new _FileHandler_202(config, config.defaultFile.GetPath())); }
public void Apply(RedwoodConfiguration config, Redwood.RecordHandlerTree root) { root.AddChild(new _FileHandler_185(config, path)); }