Spaces:
Paused
Paused
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca Download api/pkg/telemetry/logger.go from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 968 Bytes
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/telemetry/logger.go
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway/api/pkg/telemetry/logger.go
-
curl -L -o logger.go https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/main/api/pkg/telemetry/logger.go
968 Bytes
| package telemetry | |
| import ( | |
| "go.opentelemetry.io/otel/trace" | |
| ) | |
| // Logger is an interface for creating customer logger implementations | |
| type Logger interface { | |
| // Error logs an error | |
| Error(err error) | |
| // WithService creates a new structured logger instance with a service name | |
| WithService(string) Logger | |
| // WithString creates a new structured logger instance with a string | |
| WithString(key string, value string) Logger | |
| // WithSpan creates a new structured logger instance for a span. | |
| WithSpan(span trace.Span) Logger | |
| // Trace logs a new message with trace level. | |
| Trace(value string) | |
| // Info logs a new message with information level. | |
| Info(value string) | |
| // Warn logs a new message with warning level. | |
| Warn(err error) | |
| // Debug logs a new message with debug level. | |
| Debug(value string) | |
| // Fatal logs a new message with fatal level. | |
| Fatal(err error) | |
| // Printf makes the logger compatible with retryablehttp.Logger | |
| Printf(string, ...interface{}) | |
| } | |