Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureWithWriter ¶ added in v0.43.0
ConfigureWithWriter initializes the global logger writing to w. The GUI tray uses this to log to a file: when linked with -H=windowsgui there is no console, so os.Stderr is discarded and logs (and panics) would otherwise be lost.
func GetLoggerForComponent ¶ added in v0.44.0
Types ¶
type KugoCustomLogger ¶ added in v0.24.2
type KugoCustomLogger struct {
// contains filtered or unexported fields
}
KugoCustomLogger is a custom logger that uses slog and filters based on the log level
func NewKugoCustomLogger ¶ added in v0.24.2
func NewKugoCustomLogger(level LogLevel) *KugoCustomLogger
func NewKugoCustomLoggerWithLogger ¶ added in v0.46.0
func NewKugoCustomLoggerWithLogger(logger *slog.Logger) *KugoCustomLogger
NewKugoCustomLoggerWithLogger uses the supplied handler's severity threshold.
func NewKugoCustomLoggerWithWriter ¶ added in v0.44.0
func NewKugoCustomLoggerWithWriter( level LogLevel, w io.Writer, ) *KugoCustomLogger
func (*KugoCustomLogger) Debug ¶ added in v0.24.2
func (l *KugoCustomLogger) Debug(message string, kvs ...ogmigo.KeyValue)
Debug logs debug-level messages only if log level is set to DEBUG