Documentation
¶
Index ¶
- type LogDirection
- type Logger
- func (l *Logger) Fatal(message string, data ...any)
- func (l *Logger) LogAdmissionRequest(admissionReview *admission.AdmissionReview, isSkipped bool, ...)
- func (l *Logger) LogAndReportUnexpectedError(message string)
- func (l *Logger) LogDebug(message string, data ...any)
- func (l *Logger) LogError(message string, data ...any)
- func (l *Logger) LogInfo(message string, data ...any)
- func (l *Logger) LogWarn(message string, data ...any)
- func (l *Logger) PanicLevel(message string, data ...any)
- func (l *Logger) SetRequestId(requestId string)
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) LogAdmissionRequest ¶
func (l *Logger) LogAdmissionRequest(admissionReview *admission.AdmissionReview, isSkipped bool, direction LogDirection)
func (*Logger) LogAndReportUnexpectedError ¶
func (*Logger) PanicLevel ¶
func (*Logger) SetRequestId ¶
Click to show internal directories.
Click to hide internal directories.