Documentation ¶
Index ¶
- Constants
- Variables
- func FlushLogs()
- func FromContext(ctx context.Context, names ...string) logr.Logger
- func InitLogs(fs *flag.FlagSet)
- func NewContext(ctx context.Context, l logr.Logger, names ...string) context.Context
- func WithRelatedResource(l logr.Logger, obj metav1.Object) logr.Logger
- func WithRelatedResourceName(l logr.Logger, name, namespace, kind string) logr.Logger
- func WithResource(l logr.Logger, obj metav1.Object) logr.Logger
- type GlogWriter
Constants ¶
View Source
const ( ResourceNameKey = "resource_name" ResourceNamespaceKey = "resource_namespace" ResourceKindKey = "resource_kind" RelatedResourceNameKey = "related_resource_name" RelatedResourceNamespaceKey = "related_resource_namespace" RelatedResourceKindKey = "related_resource_kind" )
Variables ¶
View Source
var ( Log = klogr.New().WithName("cert-manager") ErrorLevel = 0 WarnLevel = 1 InfoLevel = 2 DebugLevel = 3 )
Functions ¶
func FromContext ¶ added in v0.8.0
func NewContext ¶ added in v0.8.0
func WithRelatedResource ¶ added in v0.8.0
func WithRelatedResourceName ¶ added in v0.8.0
Types ¶
type GlogWriter ¶
type GlogWriter struct{}
GlogWriter serves as a bridge between the standard log package and the glog package.
Click to show internal directories.
Click to hide internal directories.