l0g

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddCallerSkip = zap.AddCallerSkip

Functions

This section is empty.

Types

type Field

type Field = zap.Field

type Log

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

func (*Log) Error

func (logger *Log) Error(msg string, err error, data interface{})

func (*Log) Info

func (logger *Log) Info(msg string, data interface{})

func (*Log) Warn

func (logger *Log) Warn(msg string, data interface{})

type Logger

type Logger interface {
	Info(msg string, data interface{})
	Warn(msg string, data interface{})
	Error(msg string, err error, data interface{})
}

func NewLogger

func NewLogger(options ...zap.Option) Logger

Jump to

Keyboard shortcuts

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