MCPcopy Create free account
hub / github.com/zalando/skipper / getLogOutput

Function getLogOutput

skipper.go:1305–1317  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

1303}
1304
1305func getLogOutput(name string) (io.Writer, error) {
1306 name = path.Clean(name)
1307
1308 if name == "/dev/stdout" {
1309 return os.Stdout, nil
1310 }
1311
1312 if name == "/dev/stderr" {
1313 return os.Stderr, nil
1314 }
1315
1316 return os.OpenFile(name, os.O_APPEND|os.O_CREATE|os.O_WRONLY, os.ModePerm)
1317}
1318
1319func initLog(o Options) (*logging.AccessLogger, error) {
1320 var (

Callers 1

initLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…