Documentation ¶
Overview ¶
Package log wrappers slog for the kwok and kwokctl
Index ¶
- Variables
- func NewContext(ctx context.Context, logger *Logger) context.Context
- type KMetadata
- type Level
- type Logger
- func (l *Logger) Debug(msg string, args ...any)
- func (l *Logger) Error(msg string, err error, args ...any)
- func (l *Logger) Info(msg string, args ...any)
- func (l *Logger) Log(level Level, msg string, args ...any)
- func (l *Logger) LogDepth(calldepth int, level Level, msg string, args ...any)
- func (l *Logger) Warn(msg string, args ...any)
- func (l *Logger) With(args ...any) *Logger
- func (l *Logger) WithGroup(name string) *Logger
- type ObjectRef
Constants ¶
This section is empty.
Variables ¶
View Source
var IsTerminal = term.IsTerminal
Functions ¶
Types ¶
type KMetadata ¶
KMetadata is a subset of the kubernetes k8s.io/apimachinery/pkg/apis/meta/v1.Object interface this interface may expand in the future, but will always be a subset of the kubernetes k8s.io/apimachinery/pkg/apis/meta/v1.Object interface
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func FromContext ¶
Click to show internal directories.
Click to hide internal directories.