Documentation ¶
Index ¶
- Constants
- Variables
- func AddMetadata(ctx context.Context, key, value string)
- func EndReconcileTrace(ctx context.Context, log Logger)
- func GetTraceID(ctx context.Context) string
- func NewTrace(ctx context.Context) context.Context
- func StartReconcileTrace(ctx context.Context, log Logger, k8sresourcetype, name, namespace string) context.Context
- type Logger
- type TracedLogger
- func (t *TracedLogger) Debug(ctx context.Context, msg string)
- func (t *TracedLogger) Debugf(ctx context.Context, template string, args ...interface{})
- func (t *TracedLogger) Debugw(ctx context.Context, msg string, keysAndValues ...interface{})
- func (t *TracedLogger) Error(ctx context.Context, msg string)
- func (t *TracedLogger) Errorf(ctx context.Context, template string, args ...interface{})
- func (t *TracedLogger) Errorw(ctx context.Context, msg string, keysAndValues ...interface{})
- func (t *TracedLogger) Info(ctx context.Context, msg string)
- func (t *TracedLogger) Infof(ctx context.Context, template string, args ...interface{})
- func (t *TracedLogger) Infoln(args ...interface{})
- func (t *TracedLogger) Infow(ctx context.Context, msg string, keysAndValues ...interface{})
- func (t *TracedLogger) Named(name string) *TracedLogger
- func (t *TracedLogger) Warn(ctx context.Context, msg string)
- func (t *TracedLogger) Warnf(ctx context.Context, template string, args ...interface{})
- func (t *TracedLogger) Warnw(ctx context.Context, msg string, keysAndValues ...interface{})
Constants ¶
View Source
const ReconcileEnd = "RECONCILE_END_MARKER"
View Source
const ReconcileStart = "RECONCILE_START_MARKER"
Variables ¶
View Source
var FallbackLogger = NewLogger(zap.DebugLevel)
Functions ¶
func AddMetadata ¶ added in v1.0.7
func EndReconcileTrace ¶ added in v1.0.7
func GetTraceID ¶ added in v1.0.7
Types ¶
type Logger ¶
type Logger = *TracedLogger
type TracedLogger ¶ added in v1.0.7
type TracedLogger struct {
InnerLogger *zap.SugaredLogger
}
func (*TracedLogger) Debug ¶ added in v1.0.7
func (t *TracedLogger) Debug(ctx context.Context, msg string)
func (*TracedLogger) Debugf ¶ added in v1.0.7
func (t *TracedLogger) Debugf(ctx context.Context, template string, args ...interface{})
func (*TracedLogger) Debugw ¶ added in v1.0.7
func (t *TracedLogger) Debugw(ctx context.Context, msg string, keysAndValues ...interface{})
func (*TracedLogger) Error ¶ added in v1.0.7
func (t *TracedLogger) Error(ctx context.Context, msg string)
func (*TracedLogger) Errorf ¶ added in v1.0.7
func (t *TracedLogger) Errorf(ctx context.Context, template string, args ...interface{})
func (*TracedLogger) Errorw ¶ added in v1.0.7
func (t *TracedLogger) Errorw(ctx context.Context, msg string, keysAndValues ...interface{})
func (*TracedLogger) Info ¶ added in v1.0.7
func (t *TracedLogger) Info(ctx context.Context, msg string)
func (*TracedLogger) Infof ¶ added in v1.0.7
func (t *TracedLogger) Infof(ctx context.Context, template string, args ...interface{})
func (*TracedLogger) Infoln ¶ added in v1.0.7
func (t *TracedLogger) Infoln(args ...interface{})
func (*TracedLogger) Infow ¶ added in v1.0.7
func (t *TracedLogger) Infow(ctx context.Context, msg string, keysAndValues ...interface{})
func (*TracedLogger) Named ¶ added in v1.0.7
func (t *TracedLogger) Named(name string) *TracedLogger
func (*TracedLogger) Warn ¶ added in v1.0.7
func (t *TracedLogger) Warn(ctx context.Context, msg string)
Click to show internal directories.
Click to hide internal directories.