logger

package
v0.0.0-...-4c43a3e Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogDirection

type LogDirection string
const (
	Incoming LogDirection = "incoming"
	Outgoing LogDirection = "outgoing"
)

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger - instructions to get the logs are under /guides/developer-guide.md

func New

func New(logLevel zapcore.Level, errorReporter *errorReporter.ErrorReporter) Logger

func (*Logger) Fatal

func (l *Logger) Fatal(message string, data ...any)

func (*Logger) LogAdmissionRequest

func (l *Logger) LogAdmissionRequest(admissionReview *admission.AdmissionReview, isSkipped bool, direction LogDirection)

func (*Logger) LogAndReportUnexpectedError

func (l *Logger) LogAndReportUnexpectedError(message string)

func (*Logger) LogDebug

func (l *Logger) LogDebug(message string, data ...any)

func (*Logger) LogError

func (l *Logger) LogError(message string, data ...any)

func (*Logger) LogInfo

func (l *Logger) LogInfo(message string, data ...any)

func (*Logger) LogWarn

func (l *Logger) LogWarn(message string, data ...any)

func (*Logger) PanicLevel

func (l *Logger) PanicLevel(message string, data ...any)

func (*Logger) SetRequestId

func (l *Logger) SetRequestId(requestId string)

Jump to

Keyboard shortcuts

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