cli/pkg/cli/log.go
Snider 2efcbd59ec
Some checks failed
Deploy / build (push) Failing after 3s
Security Scan / security (push) Successful in 13s
refactor: move I18nService to go-i18n, simplify log wrapper
I18nService now lives in go-i18n as NewCoreService() — any binary can
use it without importing cli. Log convenience functions use go-log
directly. Removed LogService/NewLogService/daemon_cmd wrappers.

Root go.mod: 1 direct forge dep (core/go).

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 16:24:12 +00:00

28 lines
750 B
Go

package cli
import (
"forge.lthn.ai/core/go-log"
)
// LogLevel aliases for convenience.
type LogLevel = log.Level
const (
LogLevelQuiet = log.LevelQuiet
LogLevelError = log.LevelError
LogLevelWarn = log.LevelWarn
LogLevelInfo = log.LevelInfo
LogLevelDebug = log.LevelDebug
)
// LogDebug logs a debug message if the default logger is available.
func LogDebug(msg string, keyvals ...any) { log.Debug(msg, keyvals...) }
// LogInfo logs an info message.
func LogInfo(msg string, keyvals ...any) { log.Info(msg, keyvals...) }
// LogWarn logs a warning message.
func LogWarn(msg string, keyvals ...any) { log.Warn(msg, keyvals...) }
// LogError logs an error message.
func LogError(msg string, keyvals ...any) { log.Error(msg, keyvals...) }