MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / consoleLogger

Function consoleLogger

api/pkg/di/container.go:1968–1977  ·  view source on GitHub ↗
(skipFrameCount int)

Source from the content-addressed store, hash-verified

1966}
1967
1968func consoleLogger(skipFrameCount int) *zerodriver.Logger {
1969 l := zerolog.New(
1970 zerolog.ConsoleWriter{
1971 Out: os.Stderr,
1972 },
1973 ).With().Timestamp().CallerWithSkipFrameCount(skipFrameCount).Logger()
1974 return &zerodriver.Logger{
1975 Logger: &l,
1976 }
1977}
1978
1979func isLocal() bool {
1980 return os.Getenv("ENV") == "local"

Callers 1

logDriverFunction · 0.85

Calls 1

LoggerMethod · 0.80

Tested by

no test coverage detected