Versions in this module Expand all Collapse all v0 v0.0.2 Mar 7, 2021 Changes in this version + func GetLogrusEntry(l Logger) (*logrus.Entry, error) + func SetDefault(logger Logger) + func WithLogger(ctx context.Context, logger Logger) context.Context + type Fields map[string]interface + type Logger interface + AddPFlags func(*cobra.Command) + Debug func(...interface{}) + Debugf func(string, ...interface{}) + Error func(...interface{}) + Errorf func(string, ...interface{}) + Fatal func(...interface{}) + Fatalf func(string, ...interface{}) + Info func(...interface{}) + Infof func(string, ...interface{}) + Printf func(string, ...interface{}) + Warn func(...interface{}) + Warnf func(string, ...interface{}) + WithError func(error) Logger + WithField func(string, interface{}) Logger + WithFields func(Fields) Logger + var G = GetLogger + var L Logger = NopLogger{} + func FromLogrus(l *logrus.Entry, c *LogrusConfig) Logger + func GetLogger(ctx ...context.Context) Logger + type LogrusConfig struct + Format LogrusFormatter + Level string + type LogrusFormatter string + const FormatterJSON + const FormatterText + type NopLogger struct + func (NopLogger) AddPFlags(*cobra.Command) + func (NopLogger) Debug(...interface{}) + func (NopLogger) Debugf(string, ...interface{}) + func (NopLogger) Error(...interface{}) + func (NopLogger) Errorf(string, ...interface{}) + func (NopLogger) Fatal(...interface{}) + func (NopLogger) Fatalf(string, ...interface{}) + func (NopLogger) Info(...interface{}) + func (NopLogger) Infof(string, ...interface{}) + func (NopLogger) Printf(string, ...interface{}) + func (NopLogger) Warn(...interface{}) + func (NopLogger) Warnf(string, ...interface{}) + func (l NopLogger) WithError(error) Logger + func (l NopLogger) WithField(string, interface{}) Logger + func (l NopLogger) WithFields(Fields) Logger Other modules containing this package github.com/codefresh-io/pkg