MCPcopy Create free account
hub / github.com/linuxkit/linuxkit / GetLog

Function GetLog

pkg/init/cmd/service/logging.go:36–46  ·  view source on GitHub ↗

GetLog returns the log destination we should use.

(logDir string)

Source from the content-addressed store, hash-verified

34
35// GetLog returns the log destination we should use.
36func GetLog(logDir string) Log {
37 // is an external logging system enabled?
38 if _, err := os.Stat(logWriteSocket); !os.IsNotExist(err) {
39 return &remoteLog{
40 fifoDir: "/var/run",
41 }
42 }
43 return &fileLog{
44 dir: logDir,
45 }
46}
47
48type fileLog struct {
49 dir string

Callers 2

startFunction · 0.85
runcInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected