MCPcopy
hub / github.com/caddyserver/caddy / Log

Function Log

logging.go:779–783  ·  view source on GitHub ↗

Log returns the current default logger.

()

Source from the content-addressed store, hash-verified

777
778// Log returns the current default logger.
779func Log() *zap.Logger {
780 defaultLoggerMu.RLock()
781 defer defaultLoggerMu.RUnlock()
782 return defaultLogger.logger
783}
784
785// BufferedLog sets the default logger to one that buffers
786// logs before a config is loaded.

Callers 15

trapSignalsCrossPlatformFunction · 0.85
exitProcessFromSignalFunction · 0.85
trapSignalsPosixFunction · 0.85
AppConfigDirFunction · 0.85
addStateMethod · 0.85
getListenerFromPluginFunction · 0.85
openLogsMethod · 0.85
LoggerMethod · 0.85
AcceptMethod · 0.85
replaceLocalAdminServerFunction · 0.85
manageIdentityFunction · 0.85
replaceRemoteAdminServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected