mirror of
https://github.com/hanzoai/agent.git
synced 2026-09-11 21:08:51 +00:00
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.
32 lines
899 B
Go
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...))
|
|
}
|