log

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check added in v0.0.7

func Check(lvl zapcore.Level, msg string)

func Core added in v0.0.7

func Core() zapcore.Core

func Debug

func Debug(msg string, fields ...zap.Field)

func Error

func Error(msg string, fields ...zap.Field)

func Fatal

func Fatal(msg string, fields ...zap.Field)

func Info

func Info(msg string, fields ...zap.Field)

func Named added in v0.0.7

func Named(s string) *zap.Logger

func NewLogger

func NewLogger(c *config.Config, opts ...Option) (err error)

func Panic

func Panic(msg string, fields ...zap.Field)

func SetLog added in v0.1.0

func SetLog(log *zap.Logger)

func Sugar added in v0.0.7

func Sugar() *zap.SugaredLogger

func Sync added in v0.0.7

func Sync() error

func Warn

func Warn(msg string, fields ...zap.Field)

func With added in v0.0.7

func With(fields ...zap.Field)

func WithContext added in v0.1.0

func WithContext(ctx context.Context) *zap.Logger

WithContext release fields to a new logger. Plugins can use this method to release plugin name field.

func WithOptions added in v0.0.7

func WithOptions(opts ...zap.Option) *zap.Logger

Types

type Option added in v0.0.6

type Option func(*options)

func WithWriter added in v0.0.6

func WithWriter(w io.Writer) Option

Jump to

Keyboard shortcuts

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