MCPcopy Index your code
hub / github.com/foxcpp/maddy / logOutput

Function logOutput

config.go:43–52  ·  view source on GitHub ↗
(_ *config.Map, node config.Node)

Source from the content-addressed store, hash-verified

41}
42
43func 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
54func LogOutputOption(args []string) (log.Output, error) {
55 outs := make([]log.Output, 0, len(args))

Callers

nothing calls this directly

Calls 2

NodeErrFunction · 0.92
LogOutputOptionFunction · 0.85

Tested by

no test coverage detected