MCPcopy Index your code
hub / github.com/cloudflare/cloudflared / stdoutPath

Function stdoutPath

cmd/cloudflared/macos_service.go:91–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89}
90
91func stdoutPath() (string, error) {
92 if isRootUser() {
93 return fmt.Sprintf("/Library/Logs/%s.out.log", launchdIdentifier), nil
94 }
95 userHomeDir, err := userHomeDir()
96 if err != nil {
97 return "", err
98 }
99 return fmt.Sprintf("%s/Library/Logs/%s.out.log", userHomeDir, launchdIdentifier), nil
100}
101
102func stderrPath() (string, error) {
103 if isRootUser() {

Callers 2

installLaunchdFunction · 0.85
uninstallLaunchdFunction · 0.85

Calls 2

isRootUserFunction · 0.85
userHomeDirFunction · 0.85

Tested by

no test coverage detected