MCPcopy
hub / github.com/cloudflare/cloudflared / CreateLoggerFromContext

Function CreateLoggerFromContext

logger/create.go:135–137  ·  view source on GitHub ↗
(c *cli.Context, disableTerminal bool)

Source from the content-addressed store, hash-verified

133}
134
135func CreateLoggerFromContext(c *cli.Context, disableTerminal bool) *zerolog.Logger {
136 return createFromContext(c, cfdflags.LogLevel, cfdflags.LogDirectory, disableTerminal)
137}
138
139func CreateSSHLoggerFromContext(c *cli.Context, disableTerminal bool) *zerolog.Logger {
140 return createFromContext(c, cfdflags.LogLevelSSH, cfdflags.LogDirectory, disableTerminal)

Callers 15

installWindowsServiceFunction · 0.92
uninstallWindowsServiceFunction · 0.92
installLaunchdFunction · 0.92
uninstallLaunchdFunction · 0.92
installLinuxServiceFunction · 0.92
uninstallLinuxServiceFunction · 0.92
handleServiceModeFunction · 0.92
setFlagsFromConfigFileFunction · 0.92
RunFunction · 0.92
loginFunction · 0.92
curlFunction · 0.92
sshGenFunction · 0.92

Calls 1

createFromContextFunction · 0.85

Tested by

no test coverage detected