log

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level int
const (
	LevelProd Level = iota
	LevelDev
)

type Log

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

func New

func New(level ...Level) *Log

func (*Log) Close

func (jl *Log) Close()

func (*Log) Debug

func (jl *Log) Debug(args ...any)

func (*Log) Debugf

func (jl *Log) Debugf(format string, args ...any)

func (*Log) Debugw

func (jl *Log) Debugw(msg string, keysAndValues ...any)

func (*Log) Error

func (jl *Log) Error(args ...any)

func (*Log) Errorf

func (jl *Log) Errorf(format string, args ...any)

func (*Log) Errorw

func (jl *Log) Errorw(msg string, keysAndValues ...any)

func (*Log) Fatal

func (jl *Log) Fatal(args ...any)

func (*Log) Fatalf

func (jl *Log) Fatalf(format string, args ...any)

func (*Log) Fatalw

func (jl *Log) Fatalw(msg string, keysAndValues ...any)

func (*Log) GetZapLogger

func (jl *Log) GetZapLogger() *zap.Logger

func (*Log) GetZapSugarLogger

func (jl *Log) GetZapSugarLogger() *zap.SugaredLogger

func (*Log) Info

func (jl *Log) Info(args ...any)

func (*Log) Infof

func (jl *Log) Infof(format string, args ...any)

func (*Log) Infow

func (jl *Log) Infow(msg string, keysAndValues ...any)

func (*Log) Log

func (jl *Log) Log(args ...any)

func (*Log) Logf

func (jl *Log) Logf(format string, args ...any)

func (*Log) Panic

func (jl *Log) Panic(args ...any)

func (*Log) Panicf

func (jl *Log) Panicf(format string, args ...any)

func (*Log) Panicw

func (jl *Log) Panicw(msg string, keysAndValues ...any)

func (*Log) Warn

func (jl *Log) Warn(args ...any)

func (*Log) Warnf

func (jl *Log) Warnf(format string, args ...any)

func (*Log) Warnw

func (jl *Log) Warnw(msg string, keysAndValues ...any)

Jump to

Keyboard shortcuts

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