(_ *config.Map, node config.Node)
| 41 | } |
| 42 | |
| 43 | func logOutput(_ *config.Map, node config.Node) (interface{}, error) { |
| 44 | if len(node.Args) == 0 { |
| 45 | return nil, config.NodeErr(node, "expected at least 1 argument") |
| 46 | } |
| 47 | if len(node.Children) != 0 { |
| 48 | return nil, config.NodeErr(node, "can't declare block here") |
| 49 | } |
| 50 | |
| 51 | return LogOutputOption(node.Args) |
| 52 | } |
| 53 | |
| 54 | func LogOutputOption(args []string) (log.Output, error) { |
| 55 | outs := make([]log.Output, 0, len(args)) |
nothing calls this directly
no test coverage detected