log

package
v0.0.0-...-f53b5d5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

func Debugf

func Debugf(format string, a ...any)

func Error

func Error(msg string)

func Errorf

func Errorf(format string, a ...any)

func Info

func Info(msg string)

func Infof

func Infof(format string, a ...any)

func Warn

func Warn(msg string)

func Warnf

func Warnf(format string, a ...any)

func ZapLog

func ZapLog() *zap.Logger

Types

type Log

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

func Trace

func Trace(trace ...string) *Log

func (*Log) Debug

func (l *Log) Debug(msg string)

func (*Log) Debugf

func (l *Log) Debugf(format string, a ...any)

func (*Log) Error

func (l *Log) Error(msg string)

func (*Log) Errorf

func (l *Log) Errorf(format string, a ...any)

func (*Log) Info

func (l *Log) Info(msg string)

func (*Log) Infof

func (l *Log) Infof(format string, a ...any)

func (Log) Init

func (l Log) Init() uint8

func (*Log) Warn

func (l *Log) Warn(msg string)

func (*Log) Warnf

func (l *Log) Warnf(format string, a ...any)

type ZapLoggerAdapter

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

func NewZapLoggerAdapter

func NewZapLoggerAdapter(logger *zap.Logger, name string) *ZapLoggerAdapter

func (*ZapLoggerAdapter) Error

func (a *ZapLoggerAdapter) Error(err error, msg string, keysAndValues ...interface{})

func (*ZapLoggerAdapter) Info

func (a *ZapLoggerAdapter) Info(msg string, keysAndValues ...interface{})

func (*ZapLoggerAdapter) Printf

func (a *ZapLoggerAdapter) Printf(message string, data ...interface{})

func (*ZapLoggerAdapter) Write

func (a *ZapLoggerAdapter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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