log

package
v0.0.0-...-fd8da55 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(ctx context.Context, msg string, fields ...Field)

func Error

func Error(ctx context.Context, err error, fields ...Field)

func Info

func Info(ctx context.Context, msg string, fields ...Field)

func Warn

func Warn(ctx context.Context, msg string, fields ...Field)

Types

type Field

type Field struct {
	Key   string
	Value any
}

func (*Field) ToZap

func (f *Field) ToZap() zapcore.Field

type Logger

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

func New

func New() (*Logger, error)

func (*Logger) Raw

func (l *Logger) Raw() *zap.Logger

Jump to

Keyboard shortcuts

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