func (self LogConfig) Apply() { switch self[0] { case "stdout": logflow.StdoutSink(self[1]) case "file": logflow.FileSink(self[1], true, self[2:]...) } }
func main() { logflow.StdoutSink(".*") a := configurable.New(0) a.XVelocity = 1 agent.RunStandalone(os.Args[1], a) }