logging

package
v1.97.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package logging adds common logging hooks for cnrm applications

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildLogger

func BuildLogger(output io.Writer) logr.Logger

BuildLogger constructs a logr.Logger object that matches the standard configuration across cnrm applications, writing to the io.Writer passed.

func Fatal

func Fatal(err error, msg string)

Fatal is a utility function to replace log.Fatal, which doesn't exist for logr loggers.

func SetupLogger

func SetupLogger()

SetupLogger configures the controller-runtime/pkg/log Logger to the standard configuration across cnrm applications, writing to os.Stdout.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL