zap

package
v2.9.0-dev.dbc482d5 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Get = _pool.Get
)

Functions

This section is empty.

Types

type Logger

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

Logger wraps a zap baseLogger to perform logging

func New

func New(logOptions loggers.LogOptions) (*Logger, error)

func (*Logger) Debug

func (l *Logger) Debug(msg string, args ...interface{})

Debug logs a debug-level message

func (*Logger) Error

func (l *Logger) Error(msg string, args ...interface{})

Error logs an error-level message

func (*Logger) Fatal

func (l *Logger) Fatal(msg string, args ...interface{})

func (Logger) GetLogr added in v2.8.0

func (l Logger) GetLogr() logr.Logger

func (*Logger) Info

func (l *Logger) Info(msg string, args ...interface{})

Info logs an info-level message

func (*Logger) Level

func (l *Logger) Level() loggers.LogLevel

func (*Logger) Warn

func (l *Logger) Warn(msg string, args ...interface{})

func (*Logger) WithFields

func (l *Logger) WithFields(fields ...field.Field) loggers.Logger

Jump to

Keyboard shortcuts

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