Files
hanzoai_agent/control-plane/internal/logger/helpers.go
zeekay 2899aeaa9f feat: merge agents control plane + SDKs into unified agent repo
Consolidate all Hanzo agent infrastructure into one repo:
- control-plane/: Go control plane server (was agents-new)
- sdk/: Go, Python, TypeScript SDKs
- deployments/: Docker, Kubernetes, Helm configs
- Dockerfile.sdk: Python SDK image (ghcr.io/hanzoai/agent:latest)
- CI builds both SDK + control-plane images

No more agentfield — everything is hanzoai/agent.
2026-02-13 12:24:31 -08:00

32 lines
899 B
Go

// Package logger provides printf-style helpers for zerolog.
package logger
import (
"fmt"
)
// Infof logs an info-level message with formatting.
func Infof(format string, args ...interface{}) {
Logger.Info().Msg(fmt.Sprintf(format, args...))
}
// Debugf logs a debug-level message with formatting.
func Debugf(format string, args ...interface{}) {
Logger.Debug().Msg(fmt.Sprintf(format, args...))
}
// Warnf logs a warning-level message with formatting.
func Warnf(format string, args ...interface{}) {
Logger.Warn().Msg(fmt.Sprintf(format, args...))
}
// Errorf logs an error-level message with formatting.
func Errorf(format string, args ...interface{}) {
Logger.Error().Msg(fmt.Sprintf(format, args...))
}
// Successf logs a success-level message (info with a checkmark).
func Successf(format string, args ...interface{}) {
Logger.Info().Msg("✅ " + fmt.Sprintf(format, args...))
}