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

Function logger

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

Source from the content-addressed store, hash-verified

1913}
1914
1915func logger(skipFrameCount int) telemetry.Logger {
1916 fields := map[string]string{
1917 string(semconv.ServiceInstanceIDKey): instanceID(),
1918 string(semconv.DeploymentEnvironmentKey): os.Getenv("ENV"),
1919 }
1920
1921 return telemetry.NewZerologLogger(
1922 os.Getenv("GCP_PROJECT_ID"),
1923 fields,
1924 logDriver(skipFrameCount),
1925 nil,
1926 )
1927}
1928
1929func logDriver(skipFrameCount int) *zerodriver.Logger {
1930 if isLocal() {

Callers 3

NewLiteContainerFunction · 0.85
NewContainerFunction · 0.85
LoggerMethod · 0.85

Calls 2

instanceIDFunction · 0.85
logDriverFunction · 0.85

Tested by

no test coverage detected