Versions in this module Expand all Collapse all v0 v0.1.0 Feb 16, 2026 Changes in this version + const ClusterIDCtxKey + const FieldAdapter + const FieldBindAddress + const FieldChannel + const FieldConnectionString + const FieldData + const FieldEndpoint + const FieldEnvironment + const FieldErrorCode + const FieldExporterEndpoint + const FieldFlag + const FieldHTTPDuration + const FieldHTTPMethod + const FieldHTTPPath + const FieldHTTPStatusCode + const FieldHTTPUserAgent + const FieldLogFormat + const FieldLogLevel + const FieldLogOutput + const FieldMigrationID + const FieldNodePoolID + const FieldOTelEnabled + const FieldSamplingRate + const FieldSchemaPath + const FieldTable + const ReqIDHeader + const ReqIDKey + const ResourceIDCtxKey + const ResourceTypeCtxKey + const SpanIDCtxKey + const TraceIDCtxKey + const TransactionIDCtxKey + var ContextFieldsRegistry = []ContextField + func Debug(ctx context.Context, msg string) + func Error(ctx context.Context, msg string) + func GetClusterID(ctx context.Context) (string, bool) + func GetLogger() *slog.Logger + func GetRequestID(ctx context.Context) (string, bool) + func GetResourceID(ctx context.Context) (string, bool) + func GetResourceType(ctx context.Context) (string, bool) + func GetSpanID(ctx context.Context) (string, bool) + func GetTraceID(ctx context.Context) (string, bool) + func GetTransactionID(ctx context.Context) (int64, bool) + func HTTPDuration(d time.Duration) slog.Attr + func HTTPMethod(method string) slog.Attr + func HTTPPath(path string) slog.Attr + func HTTPRequestAttrs(r *http.Request) []slog.Attr + func HTTPResponseAttrs(statusCode int, duration time.Duration) []slog.Attr + func HTTPStatusCode(code int) slog.Attr + func HTTPUserAgent(ua string) slog.Attr + func Info(ctx context.Context, msg string) + func InitGlobalLogger(cfg *LogConfig) + func NewHyperFleetHandler(cfg *LogConfig) slog.Handler + func NewOCMLoggerBridge() sdk.Logger + func ParseLogLevel(level string) (slog.Level, error) + func ParseLogOutput(output string) (io.Writer, error) + func ReconfigureGlobalLogger(cfg *LogConfig) + func RequestIDMiddleware(handler http.Handler) http.Handler + func Warn(ctx context.Context, msg string) + func WithClusterID(ctx context.Context, clusterID string) context.Context + func WithRequestID(ctx context.Context) context.Context + func WithResourceID(ctx context.Context, resourceID string) context.Context + func WithResourceType(ctx context.Context, resourceType string) context.Context + func WithSpanID(ctx context.Context, spanID string) context.Context + func WithTraceID(ctx context.Context, traceID string) context.Context + func WithTransactionID(ctx context.Context, transactionID int64) context.Context + type ContextField struct + Getter func(context.Context) (string, bool) + Key contextKey + Name string + type ContextLogger struct + func With(ctx context.Context, args ...any) *ContextLogger + func WithError(ctx context.Context, err error) *ContextLogger + func (l *ContextLogger) Debug(msg string) + func (l *ContextLogger) Error(msg string) + func (l *ContextLogger) Info(msg string) + func (l *ContextLogger) Warn(msg string) + func (l *ContextLogger) With(args ...any) *ContextLogger + func (l *ContextLogger) WithError(err error) *ContextLogger + type GormLogger struct + func NewGormLogger(logLevel gormlogger.LogLevel, slowThreshold time.Duration) *GormLogger + func (l *GormLogger) Error(ctx context.Context, msg string, data ...interface{}) + func (l *GormLogger) Info(ctx context.Context, msg string, data ...interface{}) + func (l *GormLogger) LogMode(level gormlogger.LogLevel) gormlogger.Interface + func (l *GormLogger) Trace(ctx context.Context, begin time.Time, ...) + func (l *GormLogger) Warn(ctx context.Context, msg string, data ...interface{}) + type HyperFleetHandler struct + func (h *HyperFleetHandler) Enabled(ctx context.Context, level slog.Level) bool + func (h *HyperFleetHandler) Handle(ctx context.Context, r slog.Record) error + func (h *HyperFleetHandler) WithAttrs(attrs []slog.Attr) slog.Handler + func (h *HyperFleetHandler) WithGroup(name string) slog.Handler + type HyperFleetTextHandler struct + func NewHyperFleetTextHandler(w io.Writer, component, version, hostname string, level slog.Level) *HyperFleetTextHandler + func (h *HyperFleetTextHandler) Enabled(_ context.Context, level slog.Level) bool + func (h *HyperFleetTextHandler) Handle(ctx context.Context, r slog.Record) error + func (h *HyperFleetTextHandler) WithAttrs(attrs []slog.Attr) slog.Handler + func (h *HyperFleetTextHandler) WithGroup(name string) slog.Handler + type LogConfig struct + Component string + Format LogFormat + Hostname string + Level slog.Level + Output io.Writer + Version string + type LogFormat int + const FormatJSON + const FormatText + func ParseLogFormat(format string) (LogFormat, error) + type OCMLoggerBridge struct + func (b *OCMLoggerBridge) Debug(ctx context.Context, format string, args ...interface{}) + func (b *OCMLoggerBridge) DebugEnabled() bool + func (b *OCMLoggerBridge) Error(ctx context.Context, format string, args ...interface{}) + func (b *OCMLoggerBridge) ErrorEnabled() bool + func (b *OCMLoggerBridge) Fatal(ctx context.Context, format string, args ...interface{}) + func (b *OCMLoggerBridge) Info(ctx context.Context, format string, args ...interface{}) + func (b *OCMLoggerBridge) InfoEnabled() bool + func (b *OCMLoggerBridge) Warn(ctx context.Context, format string, args ...interface{}) + func (b *OCMLoggerBridge) WarnEnabled() bool v0.1.0-rc.1 Feb 16, 2026